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

:root {
  /* Colors */
  --white: #fbfbfb;
  --light2: #bfbbb4;
  --black3: #15110c;
  --brand: #d7caba;
  --black1: #5b5654;
  --light3: #9e968e;
  --light1: #e6e3e0;
  --black2: #221c17;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 32px;
  --padding-vertical: 32px;
  --cards-gap: 20px;
  --section-gap: 48px;
  --section-padding: 120px;

  /* 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-accent-text {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0.09em;
}

.text-18-px-button {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 100px;
  letter-spacing: 0.05em;
}

.text-46px-title {
  font-family: "Lora", sans-serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 51px;
}

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

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

.text-28px-title {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 31.2px;
  letter-spacing: 0.07em;
}

.text-24px-title {
  font-family: "Lora", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 23.4px;
}

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

/* UI signature — derived from the design; every component honours these:
   1) Hard-edged EVERYWHERE — literal 0px radius on buttons, cards, inputs and
      icon/slider chrome alike. No pills, no rounded corners; the brand reads
      architectural/editorial. The whole radius scale collapses to 0.
   2) Primary CTA = a SOLID warm-sand (var(--brand) #d7caba) rectangle, FLAT
      (no shadow, no gradient) with a near-black (var(--black3)) SemiBold
      uppercase-tracked label and a trailing -> arrow. ~55px tall, 16/32 pad, 18px.
   3) Secondary = a GHOST rectangle: transparent fill + 2px solid var(--black1)
      outline + dark label, clearly lower-priority; fills dark on hover. Never a
      second sand clone of the accent.
   4) Cards = WHITE panels with a 1px var(--light2) hairline border and NO drop
      shadow at rest, sharp corners, roomy 32px body padding, an uppercase tracked
      title and an "ANSEHEN ->" text-arrow link at the foot (bordered-flat).
   5) The trailing -> arrow is the site-wide interaction MOTIF (CTA, card read-more,
      process buttons) and slides right on hover; sand var(--brand) is the accent
      for animated underlines and Lora-serif highlight numerals. */

:root {
  /* Accent = the design's PRIMARY CTA colour. Verified against the pixels: the
     "SENDEN" button IS the sand var(--brand) with DARK (near-black) text. */
  --accent: var(--brand);                    /* sand #d7caba — CTA fill / active state */
  --accent-2: var(--brand);                  /* CTA is SOLID, not a gradient -> = accent */
  --accent-contrast: var(--black3, #15110c); /* label on the sand accent is near-black, NOT white */
  --btn-shadow: none;                        /* the CTA is FLAT — its signature is the ABSENCE of a shadow */

  /* Radius is a scale by role — but THIS brand is hard-edged, so every step is 0.
     Kept as named tokens so any component referencing them stays on-brand (square). */
  --radius-sm: 0px;    /* inputs / small chips */
  --radius-md: 0px;    /* cards / tiles */
  --radius-lg: 0px;    /* large containers / hero form panel */
  --radius-pill: 0px;  /* "pill"/icon buttons — this brand has NO pills; hard rectangles */
  --btn-radius: 0px;   /* the PRIMARY button's REAL radius — also shapes the shared slider arrows */

  --btn-height: 55px;      /* ONE button height site-wide — from the CTA close-up (~55px) */
  --btn-height-sm: 44px;   /* the one deliberate compact size */
}

/* ------------------------------------------------------------------ *
 * Buttons — ONE shape site-wide (height/radius/padding/label-type are
 * invariant); 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);  /* height fixed here — NOT re-derived from padding */
  padding-block: 0;
  padding-inline: 32px;                 /* the design's 16/32 -> vertical is min-height, inline 32 */
  border: 1px solid transparent;
  border-radius: var(--btn-radius, var(--border-radius, 0px));
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  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(--accent, var(--brand));
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — solid sand fill, near-black label, FLAT (no shadow at rest). */
.btn-primary {
  background: var(--btn-bg, var(--accent, var(--brand)));
  color: var(--btn-fg, var(--accent-contrast, var(--black3)));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(21, 17, 12, 0.35);
    filter: brightness(0.96);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); filter: brightness(0.94); }

/* Secondary — ghost rectangle: transparent + 2px dark outline, near-black label.
   Design decouples them: label is var(--black3), the outline is var(--black1). */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-fg, var(--black3, #15110c));
  border: 2px solid var(--btn-accent, var(--black1, #5b5654));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--black1, #5b5654));
    color: var(--btn-fg, var(--white, #fbfbfb));
    transform: translateY(-2px);
  }
}
.btn-secondary:active { transform: translateY(0); }

/* Ghost / text — no chrome until hover (the inline "ANSEHEN ->" affordance). */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--black3, #15110c));
  padding-inline: 8px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent, var(--brand))) 14%, transparent); }
}
.btn-ghost:active { transform: translateY(0); }

/* Icon button — square (0 radius, on-brand), slider arrows & lightbox glyphs. */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: var(--btn-radius, var(--radius-pill, 0px));
  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(--black3)));
  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(--accent, var(--brand)); outline-offset: 2px; }
/* Slotted raw <svg>/<img> (no intrinsic size) — sized to the square & centred. */
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small — the ONE deliberate compact button; only height + inline padding shrink. */
.btn--sm { min-height: var(--btn-height-sm, 44px); padding-inline: 20px; font-size: 16px; }

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

/* 1. Powiekszenie — 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 (portfolio tiles) */
.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); } }

/* 2. Uniesienie — lift (translateY + shadow). Default for 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 32px -12px rgba(21, 17, 12, 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(--black3)); }
}
.hover-tint { transition: color 200ms ease, border-color 200ms ease; }
@media (hover: hover) {
  .hover-tint:hover { color: var(--accent, var(--brand)); border-color: var(--accent, var(--brand)); }
}

/* 4. Ruchoma strzalka — moving arrow (the site-wide motif) */
.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 podkreslenia — animated underline (nav + inline 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)); }
.link-underline-center { background-position: 50% 100%; }

/* ------------------------------------------------------------------ *
 * Cards / tiles — white panel, hairline border, NO shadow at rest.
 * ------------------------------------------------------------------ */
.card {
  position: relative;
  z-index: 1;
  background: var(--white, #fbfbfb);
  border: 1px solid var(--light2, #bfbbb4);
  border-radius: var(--radius-md, var(--border-radius, 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(21, 17, 12, 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(--accent, var(--brand)); outline-offset: 2px; }
/* `.card` is padless so flush media reaches its edges; text goes in `.card-body`. */
.card-body { padding: var(--padding-vertical, 32px) var(--padding-horizontal, 32px); }

/* ------------------------------------------------------------------ *
 * Inputs (contact / hero quote form) — box on white, hairline, sharp.
 * ------------------------------------------------------------------ */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--light3, #9e968e);
  border-radius: var(--radius-sm, var(--border-radius, 0px));
  background: var(--white, #fbfbfb);
  color: var(--black3, #15110c);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--light3, #9e968e); }
.field:hover { border-color: var(--black1, #5b5654); }
.field:focus {
  outline: none;
  border-color: var(--accent, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--brand)) 30%, transparent);
}
.field:disabled { opacity: 0.5; cursor: not-allowed; }
.field:user-invalid { border-color: #e5484d; }

/* ------------------------------------------------------------------ *
 * Content icons (monochrome, recolourable) — steer paint via --icon-color
 * ------------------------------------------------------------------ */
.svc-icon {
  display: inline-block;
  width: 48px; height: 48px;   /* size from the design (why-us icons ~48px) */
  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 (numbered process steps) — grid-centred numeral
 * ------------------------------------------------------------------ */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-pill, 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 dashboard data placeholder
 * ------------------------------------------------------------------ */
.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;
  }
}
