/* 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: #c91e1b;
  --brand-secondary: #2f5ea4;
  --black2: #282827;
  --light1: #f2f4f5;
  --light3: #c0c2c3;
  --light2: #dbdedf;
  --dark-graphite: #252525;

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

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

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

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

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

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

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

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

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a FLAT, sharp-cornered RED rectangle (var(--brand) #c91e1b, 4px radius —
      NOT a pill), white uppercase Montserrat SemiBold label + a trailing white chevron that
      slides right on hover. No resting shadow — deliberately flat.
   2) Secondary is OUTLINE-only: transparent fill + 2px solid border, same sharp 4px corners
      and uppercase label — navy on light bands, white on dark bands. Never a red clone.
   3) Red "flag" eyebrow chip with a NOTCHED corner: three 2px-rounded corners + one square
      top-left corner (border-radius: 0 2px 2px 2px), red fill, white uppercase label.
   4) Two-tone red/navy system: RED = conversion (CTA + eyebrow); NAVY var(--brand-secondary)
      #2f5ea4 = structure — icons live in a FILLED navy square (6px radius) with a WHITE glyph,
      stats/numbers are navy.
   5) Cards are borderless white tiles with a soft grey lift shadow 0 8px 12px rgba(149,157,165,.2),
      ~12px radius, 24px inner padding; media/portfolio tiles are full-bleed images with a navy
      bottom scrim and a RED circular arrow button in the corner. Hover = lift + image zoom + arrow nudge. */

/* ---------------------------------------------------------------------------
   Semantic aliases — derived from the design. Components use THESE, never a
   raw --brand / --border-radius. tokens.css carries the raw palette/type.
   --------------------------------------------------------------------------- */
:root {
  --accent: var(--brand);                       /* red #c91e1b — the PRIMARY CTA / conversion */
  --accent-2: var(--brand);                     /* solid CTA (no gradient) → same as --accent */
  --accent-contrast: var(--white);              /* readable text on the accent */
  --secondary-accent: var(--brand-secondary);   /* navy #2f5ea4 — structure (icons, stats, outline) */
  --btn-shadow: none;                           /* the primary CTA is FLAT — no resting shadow */

  /* Radius is a SCALE, not one flat token — the design rounds by element role. */
  --radius-sm: 4px;    /* inputs, buttons, eyebrow chip */
  --radius-md: 8px;    /* media tiles / portfolio images */
  --radius-lg: 12px;   /* cards / process + service tiles */
  --radius-pill: 999px;/* icon buttons (red circular arrow) */
  --btn-radius: 4px;   /* the primary button's REAL radius — sharp rect, NOT a pill. Also shapes Slider arrows. */

  --btn-height: 55px;      /* ONE button height site-wide — from the close-up (~55px) */
  --btn-height-sm: 44px;   /* the one deliberate compact button */
  --card-shadow: 0 8px 12px rgba(149, 157, 165, 0.2); /* the design's resting card shadow */
}

/* ===========================================================================
   BUTTONS
   =========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height, 55px);  /* height is fixed here — not re-derived from padding */
  padding-block: 0;
  padding-inline: 32px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius, var(--radius-sm, 4px));
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  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 — the flat red conversion CTA. A section may recolour it on a coloured
   band via --btn-bg / --btn-fg; base.css reads them HERE so the override works. */
.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 18px -8px color-mix(in srgb, var(--accent, var(--brand)) 60%, transparent);
    filter: brightness(0.94);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); filter: brightness(0.9); }

/* Secondary — OUTLINE only (transparent + 2px border), lower priority than the red CTA.
   Default = navy (structure colour) for light bands; dark bands pass --btn-accent: white. */
.btn-secondary {
  background-color: var(--btn-bg, transparent);
  color: var(--btn-accent, var(--secondary-accent, var(--brand-secondary)));
  border-width: 2px;
  border-color: var(--btn-accent, var(--secondary-accent, var(--brand-secondary)));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--secondary-accent, var(--brand-secondary)));
    color: var(--btn-fg, 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));
  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 — the red circular arrow (slider chrome, card corner, lightbox). */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  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)));
  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.95); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* A slotted icon/SVG is sized to the square & centred (the shared <Button> slots a raw <svg>). */
.btn-icon > svg,
.btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small size — only height + inline padding shrink, never the radius/typography. */
.btn--sm { min-height: var(--btn-height-sm, 44px); padding-inline: 22px; }

/* Trailing arrow (the white chevron on the CTA, the "read more" arrow) — only the
   arrow moves. Pair with .btn-primary / a link. */
.with-arrow { display: inline-flex; align-items: center; gap: 10px; }
.with-arrow .arrow { display: inline-flex; transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: translateX(4px); } }

/* ===========================================================================
   LINKS
   =========================================================================== */
/* Animated underline — grows from the left. Nav links + inline "read more". */
.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); }
/* Center-out variant. */
.link-underline-center { background-position: 50% 100%; }

/* ===========================================================================
   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-md, var(--border-radius)); }
.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). Cards, tiles, CTAs. */
.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 28px -10px rgba(149, 157, 165, 0.35); }
}
.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(--brand); border-color: var(--brand); }
}

/* 4) Ruchoma strzałka — 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); }
}

/* ===========================================================================
   CARDS / TILES
   =========================================================================== */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg, var(--border-radius, 12px));
  box-shadow: var(--card-shadow, 0 8px 12px rgba(149, 157, 165, 0.2));
  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 28px -8px rgba(149, 157, 165, 0.35); }
  .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 the edges — text goes in this padded wrapper. */
.card-body { padding: var(--padding-vertical, 24px) var(--padding-horizontal, 24px); }

/* ===========================================================================
   SIGNATURE PRIMITIVES (red flag eyebrow + navy icon square)
   =========================================================================== */
/* Red "flag" eyebrow chip — notched corner: square top-left, 2px on the other three. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  background-color: var(--accent, var(--brand));
  color: var(--accent-contrast, var(--white));
  border-radius: 0 2px 2px 2px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Navy icon square — the two-tone signature: white glyph inside a filled navy box. */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background-color: var(--icon-box-bg, var(--secondary-accent, var(--brand-secondary)));
  color: var(--icon-box-fg, var(--white));
}
.icon-box > svg,
.icon-box > img { width: 32px; height: 32px; display: block; }

/* Content icon (monochrome, recolourable via --icon-color) — CSS mask, never a raw <img>. */
.svc-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: var(--icon-color, var(--white));
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 200ms ease;
}

/* Numbered process step badge (grid-centred, uniform digits, optical trim enhancement). */
.step-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background-color: var(--secondary-accent, var(--brand-secondary));
  color: 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;
}

/* ===========================================================================
   FORM INPUTS
   =========================================================================== */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--light3, #c0c2c3);
  border-radius: var(--radius-sm, 4px);
  background: var(--white);
  color: var(--black3, #1c1b1a);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 22.4px;
  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, #f2f4f5); }
.field:user-invalid { border-color: #e5484d; }

/* ===========================================================================
   MISSING-DATA PLACEHOLDER
   =========================================================================== */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

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