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

:root {
  /* Colors */
  --white: #ffffff;
  --light2: #eeeae5;
  --black3: #191a1a;
  --brand: #de2d2d;
  --copper-2: #9c7347;
  --copper: #d8a971;
  --black1: #625b5d;
  --black2: #393737;
  --light1: #f3f0ec;
  --light3: #eae7df;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 28px;
  --padding-vertical: 28px;
  --cards-gap: 4px;
  --section-gap: 48px;
  --section-padding: 115px;

  /* 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-18-px-button {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 23.4px;
  letter-spacing: -0.02em;
}

.text-64px-title {
  font-family: "General Sans", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 75px;
  letter-spacing: 0.01em;
}

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

.text-40px-title {
  font-family: "General Sans", sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 45px;
}

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

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) ZERO rounding, everywhere — every surface is a hard 90° rectangle: the red CTA, the
      white service cards, the project image tiles, the copper number badges, the input
      fields, the inset icon box. --border-radius:0 is REAL here; the whole radius scale
      (sm→pill) collapses to 0. Sharpness is the brand's architectural "podpis".
   2) The primary CTA is a FLAT red (#de2d2d / --brand) rectangle with an inset BLACK
      (#191a1a / --black3) square on its right end holding a WHITE double-chevron (»).
      Two-tone (red body + black glyph-box), no drop shadow at rest.
   3) The double-chevron "»" is the brand's directional mark — white-in-black-box on the
      primary, and a bare RED »» on secondary actions ("Leistungen ansehen") and inline
      "Ansehen" read-more links. It always trails the label and slides right on hover.
   4) Copper→bronze gradient (--copper #d8a971 → --copper-2 #9c7347) is the prestige /
      decoration accent, SEPARATE from the red action accent — used for the small uppercase
      section eyebrows ("Leistungen", "Warum wir?", "Projekte"), the highlighted hero word,
      the hero feature-bullet icon chips and the process step-number badges. Red = do,
      copper = prestige.
   5) Cards / tiles are FLAT, borderless, shadowless boxes — a full-bleed photo on top, then
      a 28px-padded (--padding-*) text body; white on light sections, near-black (#191a1a)
      on dark sections. Depth (lift + shadow) appears ONLY on hover, never at rest. */

/* ------------------------------------------------------------------ *
 * Semantic aliases — derived from the design. Components read THESE,
 * never a raw --brand / --border-radius.
 * ------------------------------------------------------------------ */
:root {
  /* Accent = the design's PRIMARY CTA colour. Here the CTA genuinely IS --brand (the flat
     red rectangle), so accent aliases brand. The CTA is SOLID (no gradient) → --accent-2
     stays = --accent so `.btn-primary` renders flat, not a gradient. */
  --accent: var(--brand);
  --accent-2: var(--brand);
  --accent-contrast: var(--white);

  /* The primary button is FLAT — the design draws no resting shadow on it. */
  --btn-shadow: none;

  /* Prestige / decoration accent (signature #4) — the copper→bronze gradient used by
     eyebrows, the hero highlight word and the process step badges. Top→bottom, as drawn. */
  --copper-gradient: linear-gradient(180deg, var(--copper), var(--copper-2));

  /* RADIUS SCALE — this brand is fully square (signature #1). Every step, including the
     nominal "pill", collapses to 0 so NOTHING renders rounded: buttons, cards, inputs,
     icon buttons, the shared Slider's arrow buttons (they read --btn-radius) and its dots
     (they read --radius-pill) all stay crisply square, matching the red square slider
     arrow in the design. --border-radius is the Figma token (0) and is a safe fallback. */
  --radius-sm: var(--border-radius, 0px);
  --radius-md: var(--border-radius, 0px);
  --radius-lg: var(--border-radius, 0px);
  --radius-pill: var(--border-radius, 0px);

  /* ONE button height + the primary button's REAL radius for the whole site. --btn-radius
     is also consumed by Slider.astro to shape its prev/next arrow buttons — square here. */
  --btn-height: 56px;
  --btn-radius: var(--border-radius, 0px);

  /* The inset glyph box on the primary CTA (signature #2). */
  --btn-box-size: 40px;
}

/* ================================================================== *
 * BUTTONS — the shared <Button> renders these classes (single source
 * of truth). ONE invariant shape site-wide; only COLOUR varies per
 * band via --btn-bg / --btn-fg / --btn-accent.
 * ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
  min-height: var(--btn-height, 56px); /* height fixed here — not re-derived from padding */
  padding-block: 0;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius, var(--border-radius, 0px)); /* square — signature #1 */
  font-family: "Inter", sans-serif;
  font-size: 18px;      /* 18 PX BUTTON — the design's button type, verbatim */
  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 — flat red rectangle (signature #2). Solid fill by default; a section may
   recolour it on a coloured band via --btn-bg / --btn-fg (base reads them HERE). */
.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); /* none — the design's CTA is flat */
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent, var(--brand)) 50%, transparent);
    filter: brightness(0.94);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); filter: none; }

/* SECONDARY — the design's "Leistungen ansehen": no fill, no border, DARK ink label with a
   bare RED double-chevron (signature #3). Lower-priority than the red CTA. A section may
   recolour it on a dark band via --btn-fg (label) / --btn-accent (arrow + hover ink). */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-fg, var(--black3));
  border-color: transparent;
  padding-inline: 32px; /* the design draws the secondary with more inline room */
}
.btn-secondary .arrow { color: var(--btn-accent, var(--brand)); } /* red »» regardless of label */
@media (hover: hover) {
  .btn-secondary:hover {
    color: var(--btn-accent, var(--brand)); /* label swaps to the accent red on hover */
    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(--black1, currentColor));
  padding-inline: 8px;
}
.btn-ghost .arrow { color: var(--btn-accent, var(--brand)); }
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--brand)) 10%, transparent); }
}
.btn-ghost:active { transform: translateY(1px); }

/* ICON button (slider arrows, lightbox close) — a SQUARE red tile (signature #1), matching
   the design's red square slider arrow. Centring + glyph sizing live in Button.astro. */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  border-radius: var(--btn-radius, 0px); /* square, not a circle */
  background-color: var(--btn-bg, var(--accent, var(--brand)));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, filter 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.06); filter: brightness(1.05); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Slotted glyph/SVG sized & centred (Button.astro slots a raw <svg> with no dimensions). */
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small size — the ONE deliberate smaller button; only height + inline padding shrink. */
.btn--sm { min-height: 40px; padding-inline: 18px; }

/* ------------------------------------------------------------------ *
 * The trailing CTA arrow — the brand's double-chevron » (signature #3)
 * ------------------------------------------------------------------ */
.with-arrow { display: inline-flex; align-items: center; gap: 8px; }
.with-arrow .arrow { transition: transform 200ms ease, background-color 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: translateX(4px); } }

/* PRIMARY's arrow is the inset BLACK square holding the white chevron (signature #2). The
   box stays black with a white chevron no matter how the fill is recoloured per band. */
.btn-primary.with-arrow { gap: 12px; padding-right: 8px; } /* tuck the box to the right edge, as drawn */
.btn-primary .arrow {
  flex: 0 0 auto;
  width: var(--btn-box-size, 40px);
  height: var(--btn-box-size, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black3);
  color: var(--white);
}

/* ================================================================== *
 * LINKS
 * ================================================================== */
/* Nav / inline animated underline — grows from the left in the brand red. */
.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%; }

/* Inline "read more" — the design's red "Ansehen »": red semibold label + red chevron that
   nudges, an underline growing in on hover. Sections supply the chevron in a `.arrow`. */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  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, filter 200ms ease;
}
.link-more .arrow { color: var(--brand); transition: transform 200ms ease; }
@media (hover: hover) {
  .link-more:hover { background-size: 100% 2px; }
  .link-more:hover .arrow { transform: translateX(4px); }
}
.link-more:focus-visible { background-size: 100% 2px; outline: 2px solid var(--brand); outline-offset: 3px; }

/* ================================================================== *
 * CARDS / TILES — flat, borderless, shadowless at rest (signature #5)
 * ================================================================== */
.card {
  position: relative;          /* sits above any section decoration */
  z-index: 1;
  background: var(--white);    /* solid — never transparent (occludes decorations) */
  border-radius: var(--radius-md, var(--border-radius, 0px)); /* square */
  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` is padless so flush images reach its edges; text lives in this padded wrapper,
   at the design's 28px body inset (--padding-*). */
.card-body { padding: var(--padding-vertical, 28px) var(--padding-horizontal, 28px); }

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

/* ================================================================== *
 * INPUTS — sharp, box outline; red focus (contact / hero form)
 * ================================================================== */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--light3, #ccc);
  border-radius: var(--radius-sm, var(--border-radius, 0px)); /* square */
  background: var(--white);
  color: var(--black3);
  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(--black1); }
.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; }

/* ================================================================== *
 * HOVER VOCABULARY (reusable utilities) — combine per element
 * ================================================================== */
/* 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); }

/* 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 — fill swap (to the red accent) */
.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)); }
}
/* border + text swap (outline chips) */
.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 (standalone hint). Nudge-on-hover lives
   in `.with-arrow .arrow` above. */
.arrow-loop { animation: arrow-nudge 1.4s ease-in-out infinite; }
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* ================================================================== *
 * CONTENT ICONS (monochrome, recolourable) — CSS mask, steered ONLY
 * by --icon-color (an inline background-color beats any stylesheet).
 * ================================================================== */
.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;
}
/* Recolour per band by SETTING THE PROPERTY:
   .dark-band .svc-icon { --icon-color: var(--accent-contrast, var(--white)); }
   MANDATORY CONTRAST: dark/accent tile → light icon; light surface → red/ink. */

/* ================================================================== *
 * STEP NUMBER BADGE — numbered process steps (signature #4: copper)
 * Square copper-gradient tile with a number; sections may recolour the
 * one accent step (e.g. red) by overriding `background`.
 * ================================================================== */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-pill, 0px); /* square here — signature #1 */
  background: var(--copper-gradient);
  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;
}

/* ================================================================== *
 * MISSING-DATA PLACEHOLDER — obviously-temporary, identical site-wide
 * ================================================================== */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ================================================================== *
 * Reduced motion — kill transforms/animations for users who ask.
 * ================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
