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

:root {
  /* Colors */
  --brand: #437cc4;
  --black3: #11110f;
  --black2: #393737;
  --white: #ffffff;
  --light1: #f2f4f5;
  --black1: #737373;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 24px;
  --padding-vertical: 24px;
  --section-gap: 48px;
  --cards-gap: 20px;
  --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-18px-text {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 23.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-64px-title {
  font-family: "Poppins", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 70.4px;
  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-16px-text {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

.text-48px-title {
  font-family: "Poppins", 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-14px-text {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

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

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

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a SOLID FLAT blue (var(--brand) #437cc4) soft-rectangle (8px radius,
      16px/32px padding, ~55px tall) with a white 18px SemiBold label and a trailing white
      chevron that slides right on hover — deliberately NO drop shadow (flat, not raised).
   2) Secondary CTA is transparent with a 2px SOLID blue outline + blue label, same 8px
      radius/padding as primary — an OUTLINE treatment (never neutral grey); on a dark band
      it flips to a 2px white outline (per-band --btn-accent override).
   3) Eyebrow chips: small solid-blue pills (radius 6px, 12px/4px padding) with a white
      SemiBold label — the recurring section-label signature that sits above every heading.
   4) Photo tiles: full-bleed image, bottom dark gradient scrim, white text anchored to the
      bottom, and a 48px FILLED-BLUE rounded-square arrow button in the corner; radius 8px
      (services/projects) or 16px (why-us) — flat, no outer shadow.
   5) White info cards (process): a soft grey AMBIENT shadow 0 8px 12px rgba(149,157,165,0.2),
      8px radius, 24px inner padding, dark title + grey body, and a monochrome BLUE accent icon
      in the top-right. */

:root {
  /* Accent = the design's PRIMARY CTA colour. The pixels show a solid flat blue — it maps to
     --brand, and the CTA is SOLID (not a gradient), so --accent-2 stays equal to --accent. */
  --accent: var(--brand);
  --accent-2: var(--brand);
  --accent-contrast: var(--white);
  --btn-shadow: none;          /* the primary CTA is drawn flat — no resting shadow */

  /* Radius scale read off the design: eyebrow chips 6px, buttons/inputs/photo-tiles 8px,
     why-us tiles 16px, large containers 24px, icon/pill 999px. */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* ONE button height for the whole site — seeded from the design's primary CTA (~55px). */
  --btn-height: 55px;
  --btn-height-sm: 40px;

  /* soft ambient shadow used by the white info cards (process) — the design's card signature */
  --card-shadow: 0 8px 12px rgba(149, 157, 165, 0.2);
}

/* ---------------------------------------------------------------------------
   Buttons — ONE invariant shape (height/radius/padding/type). 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, 55px);
  padding-block: 0;
  padding-inline: 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm, var(--border-radius, 8px)); /* design draws an 8px soft-rect, not a pill */
  font-family: "Poppins", 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 — solid flat accent 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 8px 20px -6px 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 — transparent with a 2px blue OUTLINE + blue label (the design's "Mehr anzeigen").
   On a dark band a section passes --btn-accent:var(--white) + --btn-fg:var(--brand). */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-accent, var(--accent, var(--brand)));
  border-color: var(--btn-accent, var(--accent, var(--brand)));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--accent, var(--brand)));
    color: var(--btn-fg, var(--accent-contrast, var(--white)));
    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(--black2, currentColor));
  border-color: transparent;
  padding-inline: 12px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent, var(--brand))) 10%, transparent); }
}
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — filled-blue rounded SQUARE (the arrow button drawn on the photo tiles). */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm, 8px);
  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)));
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, filter 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.08); filter: brightness(0.96); } }
.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 — only height + inline padding shrink (radius/type stay fixed). */
.btn--sm { min-height: var(--btn-height-sm, 40px); padding-inline: 20px; }

/* ---------------------------------------------------------------------------
   Eyebrow chip — the recurring solid-blue section label (signature #3).
   --------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-xs, 6px);
  background-color: var(--accent, var(--brand));
  color: var(--accent-contrast, var(--white));
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 23.4px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.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 + 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%; }

/* ---------------------------------------------------------------------------
   Content icons (monochrome, recolorable) — painted via CSS mask
   --------------------------------------------------------------------------- */
.svc-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--accent, var(--brand));   /* the paint — override per band */
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 200ms ease;
}

/* ---------------------------------------------------------------------------
   Step number badge — process steps
   --------------------------------------------------------------------------- */
.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
   --------------------------------------------------------------------------- */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-sm, var(--border-radius, 8px));
  overflow: hidden;
  box-shadow: var(--card-shadow, none);   /* the design's soft grey ambient card shadow */
  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` is padless so flush media reaches its edges; text goes in this padded inner wrapper. */
.card-body { padding: 24px var(--padding-horizontal, 24px); }

/* Photo tile — full-bleed image + bottom dark scrim + bottom-anchored white text (services/why-us). */
.tile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-sm, var(--border-radius, 8px));
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.61) 58%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}
.tile > :not(img):not(.tile__scrim) { position: relative; z-index: 1; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-6px); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.35); }
  .tile:hover > img { transform: scale(1.06); }
  .tile:hover .arrow { transform: translateX(4px); }
}

/* ---------------------------------------------------------------------------
   Inputs (forms — hero quote form, contact section)
   --------------------------------------------------------------------------- */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--black1, #737373) 25%, var(--white));
  border-radius: var(--radius-sm, var(--border-radius, 8px));
  background: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: var(--black3, #11110f);
  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; }
.field:user-invalid { border-color: #e5484d; }

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