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

:root {
  /* Colors */
  --black3: #18191b;
  --black1: #656669;
  --white: #ffffff;
  --brand: #0169cb;
  --light1: #f2f4f5;
  --light2: #dbdedf;
  --black2: #262728;
  --dark2: #2a2928;
  --light3: #c0c2c3;
  --dark-graphite: #252525;

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

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

/* 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: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

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

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

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

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

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

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

.text-20px-text {
  font-family: "Montserrat", 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: 23.4px;
}

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA = a BLUE VERTICAL GRADIENT (#4c95d9 top → var(--brand) #0169cb bottom),
      white 18px semibold label, trailing ">" chevron, carrying a HARD 0-blur dark shadow
      offset to the bottom-left (the "Subtract" folded/lifted-corner brand signature).
   2) Secondary = a NEUTRAL LIGHT button: var(--light1) fill + dark var(--black3) text +
      thin brand-blue 1px outline, NO gradient — reads clearly lower-priority than the CTA.
   3) HARD 4px corners EVERYWHERE — buttons, cards, icon tiles, inputs all share the same
      4px radius; this design has NO pills and no big rounding. Corner uniformity IS the look.
   4) Cards/tiles are FLAT WHITE with a 1px var(--light3) border and NO resting shadow;
      image flush to the top edge, text in a padded body. Shadow/lift appears only on hover.
   5) Feature/service icons sit in an 80px hard-4px tile filled with the SAME blue gradient,
      icon reversed to white; on dark bands the cards themselves go near-black var(--black3). */

:root {
  /* Accent — the design's primary CTA colour is the brand blue gradient. */
  --accent: var(--brand);              /* #0169cb — dark end of the CTA gradient */
  --accent-2: #4c95d9;                 /* lighter TOP end of the CTA gradient (no token exists) */
  --accent-contrast: var(--white);     /* readable label on the accent */
  /* Primary button's RESTING signature — a hard, 0-blur shadow offset bottom-left. */
  --btn-shadow: -3px 5px 0 rgba(24, 25, 27, 0.32);

  /* Radius scale — this brand is uniformly hard-cornered (Figma --border-radius = 4px). */
  --radius-sm: var(--border-radius, 4px);   /* inputs / small chips */
  --radius-md: var(--border-radius, 4px);   /* cards / tiles / buttons / icon tiles */
  --radius-lg: 8px;                          /* large containers / hero form card */
  --radius-pill: 999px;                      /* reserved for genuinely round controls */

  /* ONE button shape for the whole site — seeded from the primary/secondary close-ups. */
  --btn-height: 55px;
  --btn-height-sm: 44px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: var(--btn-height, 55px);   /* height fixed here — NOT derived from padding */
  padding-block: 0;
  padding-inline: 32px;                  /* 16px 32px in Figma; height comes from min-height */
  border: 1px solid transparent;
  border-radius: var(--radius-md, 4px);
  font-family: "Montserrat", sans-serif;
  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 — blue vertical gradient CTA + hard signature shadow. A section may recolour it on a
   coloured band via a solid --btn-bg / --btn-fg (base reads them here). */
.btn-primary {
  background: var(--btn-bg, linear-gradient(180deg, 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);
    box-shadow: -5px 8px 0 rgba(24, 25, 27, 0.34);
    filter: brightness(1.04);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); filter: brightness(0.98); }

/* Secondary — neutral light box, dark text, thin brand-blue outline (distinct, lower priority). */
.btn-secondary {
  background-color: var(--btn-bg, var(--light1, #f2f4f5));
  color: var(--btn-fg, var(--black3, #18191b));
  border-color: var(--btn-accent, var(--brand));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--brand));
    color: var(--btn-fg-hover, var(--white));
    border-color: var(--btn-accent, var(--brand));
    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(--accent, var(--brand)));
  border-color: transparent;
  padding-inline: 8px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent, var(--brand))) 10%, transparent); }
}
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — hard-cornered square (matches the design's rounded-square arrow buttons),
   filled with the brand blue gradient, white glyph. */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border-radius: var(--radius-md, 4px);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-bg, linear-gradient(180deg, var(--accent-2), var(--accent, var(--brand))));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  border: none; cursor: pointer;
  box-shadow: var(--btn-shadow, none);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.08); filter: brightness(1.04); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Slotted icon/SVG — sized to the square & centred (shared <Button> slots a raw <svg>). */
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* The one deliberate smaller button — only height + inline padding shrink. */
.btn--sm { min-height: var(--btn-height-sm, 44px); padding-inline: 20px; }

/* ── Hover vocabulary ────────────────────────────────────────────────────── */

/* 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-in-a-fixed-frame zoom (portfolio tile / gallery) */
.media { overflow: hidden; border-radius: var(--radius-md, 4px); }
.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 change */
.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 */
.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 "read more") */
.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%; }

/* ── Content icons (monochrome, recolorable) ─────────────────────────────── */
.svc-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background-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;
}
/* On a dark / brand band, repaint to the contrast colour in the section:
   .my-dark-section .svc-icon { background-color: var(--accent-contrast, var(--white)); } */

/* ── Cards / tiles ───────────────────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--light3, #c0c2c3);   /* flat card with a hairline border, no resting shadow */
  border-radius: var(--radius-md, 4px);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 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 the edges; text goes in a padded body. */
.card-body { padding: 32px var(--padding-horizontal, 24px); }

/* ── Inputs (forms — hero "get a free quote", contact) ───────────────────── */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--light3, #c0c2c3);
  border-radius: var(--radius-sm, 4px);
  background: var(--white);
  font: inherit;
  color: var(--black3, #18191b);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--black1, #656669); }
.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; }
.field:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Missing-dashboard-data placeholder ──────────────────────────────────── */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
