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

:root {
  /* Colors */
  --light3: #c3bbb2;
  --brand: #7f2327;
  --black2: #3b3a37;
  --white: #ffffff;
  --light1: #f3f1ed;
  --light2: #ddd8d1;
  --dark2: #2a2928;
  --black3: #0f1012;
  --black1: #77716c;
  --brand-2: #b89a83;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 24px;
  --padding-vertical: 24px;
  --section-padding: 110px;
  --section-gap: 54px;
  --cards-gap: 16px;

  /* 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: 16px;
  font-weight: 600;
  line-height: 23.4px;
}

.text-48px-title {
  font-family: "Termina", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 54px;
}

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

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

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) Zero radius everywhere — hard 90deg corners on every button, card, input and image tile;
      a sharp/flat brand, so NO soft blur shadows (separate with borders / surface steps / hard
      down-right offset shadows instead).
   2) Primary CTA = solid brand-red (var(--brand) #7f2327) FLAT rectangle, white semibold label,
      a trailing right-arrow pushed to the far edge; no resting shadow.
   3) Secondary = WHITE flat rectangle with a 2px taupe (var(--light3) #c3bbb2) border and dark
      (var(--black3)) text, no arrow — visibly lower priority than the CTA (never a red clone).
   4) Content icons sit in a folded-corner "bookmark/tag" badge — brand-red on a light surface,
      white on the active red tile — never a circle.
   5) Cards are flat (no shadow), separated by a border / surface step; process tiles carry a large
      ghosted step number, image cards use a notched cut corner. One radius (0) on all four corners. */

/* ---- Semantic aliases derived from the design (accent + radius scale) ---- */
:root {
  --accent: var(--brand);            /* the design's PRIMARY CTA colour = brand red #7f2327 */
  --accent-2: var(--brand);          /* solid CTA (no gradient) — keep = --accent */
  --accent-contrast: var(--white);   /* readable text on the accent */
  --btn-shadow: none;                /* flat brand — the CTA carries NO resting shadow */

  /* Radius is a scale, but THIS brand is emphatically sharp: every step is 0. */
  --radius-sm: 0px;                  /* inputs / chips */
  --radius-md: 0px;                  /* cards / tiles */
  --radius-lg: 0px;                  /* large containers */
  --radius-pill: 999px;             /* reserved (unused by this sharp brand's chrome) */
  --btn-radius: 0px;                 /* the primary button's REAL radius — also shapes slider arrows */

  --btn-height: 53px;                /* ONE button height site-wide (from the CTA close-up) */
  --btn-height-sm: 44px;             /* the one deliberate compact size */
  --border-width: 2px;              /* buttons draw a 2px brand-statement border */
}

/* =========================================================================
   BUTTONS  (the classes the shared <Button> outputs: .btn + variant)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--btn-height, 53px);   /* height fixed here — NOT derived from padding */
  padding-block: 0;
  padding-inline: 24px;                   /* from the CTA close-up (16px 24px) */
  border: var(--border-width, 2px) solid transparent;  /* reserved so hover never reflows */
  border-radius: var(--btn-radius, 0px);
  font-family: "Inter", sans-serif;
  font-weight: 600;                       /* design's "18 PX BUTTON" = Inter Semi Bold */
  font-size: 16px;
  line-height: 1;
  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;
}
.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 brand-red flat rectangle, 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 {
    background-color: color-mix(in srgb, var(--btn-bg, var(--accent, var(--brand))) 90%, black);
    transform: translateY(-2px);
  }
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — WHITE fill, 2px taupe border, dark text; distinctly lower priority. */
.btn-secondary {
  background-color: var(--btn-bg, var(--white));
  color: var(--btn-fg, var(--black3, #151512));
  border-color: var(--btn-accent, var(--light3, #c3bbb2));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--light2, #ddd8d1);
    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: 8px;
}
@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 — sharp square to match the brand (slider arrows, lightbox glyph). */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border-radius: var(--btn-radius, 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(--white)));
  border: none; cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { background-color: color-mix(in srgb, var(--accent, var(--brand)) 90%, black); } }
.btn-icon:active { transform: translateY(1px); }
.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; radius/type unchanged. */
.btn--sm { min-height: var(--btn-height-sm, 44px); padding-inline: 18px; }

/* Trailing arrow (primary CTA "Free Quote →") — only the arrow moves. */
.with-arrow { display: inline-flex; align-items: center; gap: 8px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: translateX(4px); } }

/* =========================================================================
   HOVER VOCABULARY (reusable utilities)
   ========================================================================= */

/* 1. Powiekszenie — scale up (small icons / avatars only, never a text box). */
.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, clipped frame — zoom the image, not the box. */
.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); } }

/* 2. Uniesienie — lift. Flat/sharp brand → a HARD down-right offset shadow, no soft blur. */
.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: 6px 6px 0 color-mix(in srgb, var(--black3, #151512) 10%, transparent);
  }
}
.hover-lift:active { transform: translateY(0); }

/* 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 strzalka — continuous loop indicator (standalone chevron). */
.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 links, 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%; }

/* =========================================================================
   CARDS / TILES — flat, sharp, no resting shadow.
   ========================================================================= */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  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: 6px 6px 0 color-mix(in srgb, var(--black3, #151512) 10%, transparent);
  }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: translateX(4px); }
}
.card img { transition: transform 400ms ease; }
.card .arrow { transition: transform 200ms 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 wrapper. */
.card-body { padding: var(--padding-vertical, 24px) var(--padding-horizontal, 24px); }

/* =========================================================================
   INPUTS (forms) — thin light box, sharp corners.
   ========================================================================= */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--light3, #c3bbb2);
  border-radius: var(--radius-sm, 0px);
  background: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--black3, #151512);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--black1, #77716c); }
.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) 22%, transparent);
}
.field:user-invalid { border-color: #e5484d; }

/* =========================================================================
   CONTENT ICONS (monochrome, recolourable via --icon-color)
   ========================================================================= */
.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 (numbered process steps)
   ========================================================================= */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-md, 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; }
