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

:root {
  /* Colors */
  --white: #ffffff;
  --brand: #c8332c;
  --black3: #1c1b1a;
  --black2: #282827;
  --light1: #f4f1ed;
  --light2: #e8e5e1;
  --black1: #656363;
  --light3: #d4cfc7;
  --dark-graphite: #252525;

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

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

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

.text-14px-uppercase {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  letter-spacing: 0.02em;
}

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

.text-64px-title {
  font-family: "Manrope", sans-serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 70.4px;
  letter-spacing: -0.01em;
}

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

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

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

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

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

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA = SOLID brick-red (var(--accent) = --brand #c8332c) soft-rectangle,
      6px radius, FLAT (no resting shadow), with a trailing WHITE arrow to the right of
      the label ("Send the message" / "Get a Free Quote").
   2) Secondary CTA = OUTLINE only: transparent fill + a thin 2px neutral outline
      (var(--black1) #656363) + trailing arrow — reads clearly lower-priority than the
      red CTA, never a red clone ("View Services" / "View Projects").
   3) Cards are FLAT — white or warm-cream (var(--light1) #f4f1ed) fill, 6px radius on
      ALL FOUR corners, NO outer drop shadow at rest; image sits flush to the top edges,
      text lives in a padded body.
   4) Feature/content icons sit in a filled ROUNDED-SQUARE chip (NOT a circle) in warm
      var(--light3) #d4cfc7, 6px radius, ~80px, holding a red/dark monochrome glyph.
   5) In-card "Read more" = red (var(--accent)) inline label + trailing red arrow →, no
      underline at rest; the arrow nudges right on hover — the same red-arrow vocabulary
      shared by every CTA and link on the site.
*/

/* ------------------------------------------------------------------ *
 * Semantic aliases — derived from the design. Components reference
 * THESE, never a raw --brand / --border-radius.
 * ------------------------------------------------------------------ */
:root {
  /* Accent = the design's PRIMARY CTA colour (the red "Send the message" button). */
  --accent: var(--brand);            /* #c8332c — the conversion red */
  --accent-2: var(--brand);          /* CTA is SOLID (no gradient) → second stop = accent */
  --accent-contrast: var(--white);   /* readable label on the red fill */
  --btn-shadow: none;                /* the design's CTA is FLAT at rest — no resting shadow */

  /* Radius scale — this design rounds everything at ~6px (buttons, cards, icon chips),
     so the scale is tight; only icon-round chrome goes fully pill. */
  --radius-sm: 6px;                  /* inputs / small chips */
  --radius-md: 6px;                  /* cards / tiles / process rows */
  --radius-lg: 8px;                  /* large containers / hero cards */
  --radius-pill: 999px;              /* fully-rounded chrome (rare here) */
  --btn-radius: var(--border-radius, 6px);  /* the PRIMARY button's REAL radius — also shapes the shared Slider's arrow buttons */

  /* ONE button height for the whole site — seeded from the primary CTA (~55px). */
  --btn-height: 55px;
  --btn-height-sm: 44px;
}

/* ================================================================== *
 * BUTTONS
 * ================================================================== */
.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 16px 32px → inline 32, vertical via min-height */
  border: 2px solid transparent;
  border-radius: var(--btn-radius, var(--radius-md, 6px));
  font-family: "Manrope", sans-serif;    /* the design's 18px button type, verbatim */
  font-size: 18px;
  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 — the design's SOLID red CTA, flat at rest. */
.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);
    filter: brightness(0.94);
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent, var(--brand)) 60%, transparent);
  }
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.9); box-shadow: var(--btn-shadow, none); }

/* Secondary — OUTLINE only, neutral, distinctly lower-priority than the red CTA. */
.btn-secondary {
  background-color: var(--btn-bg, transparent);
  color: var(--btn-fg, var(--black2, #282827));
  border-color: var(--btn-accent, var(--black1, #656363));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: color-mix(in srgb, var(--btn-accent, var(--black1, #656363)) 12%, transparent);
    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));
  border-color: transparent;
  padding-inline: 10px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    background-color: color-mix(in srgb, var(--btn-accent, var(--accent, var(--brand))) 10%, transparent);
    color: var(--btn-accent, var(--accent, var(--brand)));
  }
}
.btn-ghost:active { transform: translateY(0); }

/* Icon button (slider arrows, lightbox close) — square-ish to match the brand's 6px
   buttons, NOT a circle. */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  min-height: 0;
  gap: 0;
  border: none;
  border-radius: var(--btn-radius, var(--radius-md, 6px));
  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.96); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* A slotted icon/SVG — sized to the square & centred (the shared <Button> slots a raw
   <svg> with no width/height). */
.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: var(--btn-height-sm, 44px); padding-inline: 22px; font-size: 16px; }

/* ================================================================== *
 * 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-frame zoom (portfolio tile, service card image) */
.media { overflow: hidden; border-radius: var(--radius-md, var(--border-radius, 6px)); }
.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) */
.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 — 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 — moving arrow (the red arrow that trails every CTA / read-more) */
.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); } }

.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 podkreślenia — 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
 * ================================================================== */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-md, var(--border-radius, 6px));  /* ONE radius on all four corners */
  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 goes in this padded wrapper. */
.card-body { padding: var(--padding-vertical, 24px) var(--padding-horizontal, 24px); }

/* ================================================================== *
 * INPUTS (forms — the hero "Get a Free Quote" form etc.)
 * ================================================================== */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--light3, #d4cfc7);
  border-radius: var(--radius-sm, var(--border-radius, 6px));
  background: var(--white);
  color: var(--black3, #1c1b1a);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--black1, #656363); opacity: 0.7; }
.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; }
.field:user-invalid { border-color: #e5484d; }
textarea.field { resize: vertical; min-height: 120px; }

/* ================================================================== *
 * CONTENT ICONS (monochrome, recolorable) — .svc-icon
 * Painted via CSS mask; steer the colour ONLY 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;
}
/* Recolor per band by SETTING THE PROPERTY (never background-color directly):
   .dark-band .svc-icon { --icon-color: var(--accent-contrast, var(--white)); }
   Dark/accent tile → light icon; light surface → accent/ink. */

/* The design's signature icon CHIP — a filled rounded-SQUARE (not a circle) in warm
   light3, holding the monochrome glyph. */
.icon-chip {
  display: grid;
  place-items: center;
  width: 80px; height: 80px;
  border-radius: var(--radius-md, var(--border-radius, 6px));
  background: var(--light3, #d4cfc7);
}

/* ================================================================== *
 * STEP NUMBER BADGE — numbered process steps
 * ================================================================== */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-md, var(--border-radius, 6px));
}
.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;
  }
}
