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

:root {
  /* Colors */
  --black1: #5a5b62;
  --light1: #f3f3f3;
  --black2: #34353c;
  --white: #ffffff;
  --brand: #ee1c25;
  --black3: #191a1e;
  --light3: #d9d7d1;
  --dark-grey: #858589;
  --light2: #caccd4;
  --icon-color: #ee1c25;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 24px;
  --padding-vertical: 24px;
  --cards-gap: 20px;
  --section-gap: 36px;
  --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-14px-text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

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

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

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

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

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

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

.text-20px-text {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.03em;
}

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

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a red VERTICAL gradient (#ee1c25 → #d32729) with hard SQUARE corners
      (radius 0), a white UPPERCASE 16px/600 label with negative tracking and a trailing
      horizontal red arrow; fixed 58px tall; NO drop shadow at rest.
   2) ZERO rounding site-wide — every button, card, input, badge and icon tile has hard 0px
      corners; the brand reads sharp/architectural. Separation is done with 1px hairline
      borders and dark/light surface steps, NOT soft blur — elevation is ONE hard offset shadow.
   3) Numbered process steps use a SOLID RED filled SQUARE badge with a white number, sitting
      top-left of each white, hairline-bordered step card.
   4) Secondary actions are a NEUTRAL DARK (--black3) fill with white text, or a no-fill text
      button with a dark label + red arrow — never a second red button. Red is reserved for the
      one conversion CTA plus small accents (eyebrow underline, step badges, card "View" links).
   5) Eyebrow / section labels are UPPERCASE with a short RED bottom-border underline; content
      icons are red monochrome glyphs inside a flat light-grey (--light1) square tile. */

:root {
  /* Accent (CTA) — the design's primary conversion button is RED (--brand), confirmed in pixels */
  --accent: var(--brand);
  --accent-2: #d32729;              /* darker BOTTOM of the CTA vertical gradient */
  --accent-contrast: var(--white);  /* readable text on the accent */

  /* Primary button resting shadow — the brand is flat/sharp, so none */
  --btn-shadow: none;

  /* Radius scale — the design is SHARP: every element is 0px. Pill kept only as a fallback. */
  --radius-sm: 0px;                 /* inputs / chips */
  --radius-md: 0px;                 /* cards / tiles */
  --radius-lg: 0px;                 /* large containers */
  --radius-pill: 999px;
  --btn-radius: 0px;                /* primary button radius (also shapes the slider arrows) */

  /* Button geometry (from the "Free Quote" CTA + close-ups) */
  --btn-height: 58px;
  --btn-pad-inline: 25px;
  --btn-font-size: 16px;
  --btn-weight: 600;
  --btn-transform: uppercase;
  --btn-tracking: -0.03em;

  /* Depth & separation — flat/sharp brand: hairline borders + ONE hard offset shadow */
  --border-width: 1px;
  --border: color-mix(in srgb, var(--black3) 10%, transparent);     /* hairline on light */
  --border-on-dark: color-mix(in srgb, var(--white) 12%, transparent);
  --shadow-md: 6px 6px 0 color-mix(in srgb, var(--black3) 9%, transparent);  /* hard offset, one light dir */
  --shadow-lg: 10px 10px 0 color-mix(in srgb, var(--black3) 12%, transparent);
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
  min-height: var(--btn-height, 58px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 25px);
  border: 1px solid transparent;
  border-radius: var(--btn-radius, var(--radius-sm, 0px));
  font-family: "Inter", sans-serif;
  font-size: var(--btn-font-size, 16px);
  font-weight: var(--btn-weight, 600);
  line-height: 1;
  text-transform: var(--btn-transform, uppercase);
  letter-spacing: var(--btn-tracking, -0.03em);
  font-variant-caps: var(--btn-caps, normal);
  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 — the red vertical-gradient CTA ("Free Quote"). A section may recolour it on a
   coloured band via --btn-bg / --btn-fg. */
.btn-primary {
  background: var(--btn-bg, linear-gradient(180deg, var(--accent, var(--brand)), var(--accent-2, 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);
    filter: brightness(0.95);
  }
}
.btn-primary:active { transform: translateY(0); filter: none; }

/* Secondary — neutral DARK fill ("View Projects"): lower priority than the red CTA. */
.btn-secondary {
  background: var(--btn-bg, var(--black3));
  color: var(--btn-fg, var(--white));
  border-color: transparent;
}
@media (hover: hover) {
  .btn-secondary:hover {
    background: var(--btn-bg-hover, var(--black2));
    transform: translateY(-2px);
  }
}
.btn-secondary:active { transform: translateY(0); }

/* Ghost / text — no fill, dark label + arrow ("View all Services", card "View"). Set
   --btn-fg: var(--accent) on a card to get the red accent variant. */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--black3));
  padding-inline: 0;
  border-color: transparent;
}
@media (hover: hover) {
  .btn-ghost:hover { color: var(--btn-accent, var(--accent, var(--brand))); }
}
.btn-ghost:active { transform: translateY(0); }

/* Icon button — stays SQUARE to match the sharp brand (slider arrows etc.) */
.btn-icon {
  width: var(--btn-height, 58px);
  height: var(--btn-height, 58px);
  padding: 0;
  border-radius: var(--btn-radius, 0px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: 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, filter 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { filter: brightness(0.95); transform: translateY(-2px); } }
.btn-icon:active { transform: translateY(0); filter: none; }
.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 size — only height + inline padding shrink */
.btn--sm { min-height: var(--btn-height-sm, 44px); padding-inline: 18px; }

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

/* 2. Uniesienie — lift + hard offset shadow (the flat-brand elevation) */
.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(-4px); box-shadow: var(--shadow-md); }
}
.hover-lift:active { transform: translateY(0); }

/* 3. Zmiana koloru — fill 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)); }
}

/* 4. Ruchoma strzałka — moving arrow (horizontal → in this design) */
.with-arrow { display: inline-flex; align-items: center; gap: 16px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: var(--arrow-nudge, translateX(4px)); } }

/* Media zoom inside a 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.05); } }

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

/* ---------------------------------------------------------- Cards / tiles */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: var(--border-width, 1px) solid var(--border);
  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(-4px); box-shadow: var(--shadow-md); }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: var(--arrow-nudge, 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 */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: var(--border-width, 1px) solid var(--light3, #d9d7d1);
  border-radius: var(--radius-sm, 0px);
  background: var(--white);
  color: var(--black3);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--dark-grey, #858589); }
.field:hover { border-color: var(--accent, var(--brand)); }
.field:focus {
  outline: none;
  border-color: var(--accent, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--brand)) 25%, transparent);
}
.field:user-invalid { border-color: #e5484d; }
.field:disabled { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------- Content icons (recolorable) */
.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 (process) */
.step-badge {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--accent, var(--brand));
  color: var(--accent-contrast, var(--white));
  border-radius: var(--radius-sm, 0px);
}
.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 guard */
@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; }
