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

:root {
  /* Colors */
  --black3: #161617;
  --black2: #26292c;
  --light1: #ebeef2;
  --brand: #dca364;
  --white: #ffffff;
  --light2: #dbe0e5;
  --brand-2: #bd6228;
  --black1: #5c6166;
  --light3: #c0c7ce;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 32px;
  --padding-vertical: 32px;
  --cards-gap: 24px;
  --section-gap: 48px;
  --section-padding: 115px;

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

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

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

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

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

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) Buttons are 8px-radius rectangles wearing a 2px brand-orange (#dca364 / --accent) outline;
      the FILL flips by band (primary = light --light1, secondary = dark --black3, submit = solid orange)
      but the orange border is the constant — the button is the outline, never a plain solid blob.
   2) Text on the accent orange is ALWAYS dark (--accent-contrast: var(--black3)), never white —
      the badge pill, the icon squares and the "Bezplatna wycena" CTA all carry dark ink on orange.
   3) Radius is stepped by element size, not one flat value: inputs/buttons 8px (--radius-sm),
      cards & icon squares 16px (--radius-md), large containers (form card, about card, services panel) 32px (--radius-lg).
   4) Cards on the dark graphite bands carry a soft resting shadow (0 5px 15px rgba(0,0,0,0.35)) AT REST,
      then lift (translateY) into a deeper shadow on hover — the shadow is part of the card, not just a hover reveal.
   5) A clickable tile's affordance is a trailing orange uppercase "Zobacz ->" that nudges right on hover,
      sitting under a 16px-radius photo that zooms inside its frame — arrow + image move from the SAME hover. */

:root {
  /* Accent = the design's signature warm honey-orange. It is the CTA fill, the button
     outline on every band, the icon-square fill, the focus ring and the underline colour.
     Text sitting ON the orange is DARK, never white. */
  --accent: var(--brand);              /* #dca364 — the conversion/brand orange */
  --accent-2: var(--brand-2);          /* #bd6228 — deeper burnt orange, for hover-darken */
  --accent-contrast: var(--black3);    /* dark ink is what reads on the orange */

  /* Radius scale — stepped by element size (trait 3), not one flat token. */
  --radius-sm: 8px;                    /* inputs / buttons / small chips */
  --radius-md: 16px;                   /* cards / tiles / icon squares */
  --radius-lg: 32px;                   /* large containers (form card, about card, services panel) */
  --radius-pill: 999px;                /* fully-rounded, if ever needed */

  /* Button geometry — read straight off the close-ups (16px 28px padding, ~55px tall, 8px radius). */
  --btn-radius: var(--radius-sm);      /* 8px — the primary button's real radius; also shapes the shared slider arrows */
  --btn-height: 55px;                  /* ONE button height site-wide */
  --btn-height-sm: 40px;               /* the one deliberate smaller size */
  --btn-shadow: none;                  /* the design's buttons are flat bordered rects — no resting shadow */
}

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

/* ==========================================================================
   Buttons — 8px rect + 2px orange outline; fill flips by band (traits 1 & 2)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height, 55px); /* height is fixed here — not re-derived from padding */
  padding-block: 0;
  padding-inline: 28px;
  border: 2px solid transparent;       /* the 2px outline is the button's signature; variants set its colour */
  border-radius: var(--btn-radius, var(--radius-sm, 8px));
  font-family: "Obvia", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  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;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — light cream fill, orange outline, dark ink ("Wiecej uslug").
   On a coloured band a section may recolour via --btn-bg / --btn-fg / --btn-accent. */
.btn-primary {
  background-color: var(--btn-bg, var(--light1));
  color: var(--btn-fg, var(--black3));
  border-color: var(--btn-accent, var(--accent));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--btn-accent, var(--accent)); /* light -> orange fill */
    color: var(--accent-contrast, var(--black3));       /* dark ink on orange */
    transform: translateY(-2px);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); }

/* Secondary — dark fill, orange outline, white ink ("Wiecej realizacji"): reads lower-priority. */
.btn-secondary {
  background-color: var(--btn-bg, var(--black3));
  color: var(--btn-fg, var(--white));
  border-color: var(--btn-accent, var(--accent));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--accent)); /* dark -> orange fill */
    color: var(--accent-contrast, var(--black3));       /* dark ink on orange */
    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));
  border-color: transparent;
  padding-inline: 8px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 12%, transparent);
  }
}
.btn-ghost:active { transform: translateY(0); }

/* Icon button — 8px rounded square (matches the brand's buttons, not a circle), orange fill, dark glyph. */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--btn-radius, var(--radius-sm, 8px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast, var(--black3)));
  border: 2px solid var(--btn-accent, var(--accent));
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.08); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A slotted icon/SVG is sized to the square and centred (the shared <Button> slots a raw <svg>). */
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small size — only height + inline padding shrink; radius & typography stay. */
.btn--sm { min-height: var(--btn-height-sm, 40px); padding-inline: 18px; }

/* ==========================================================================
   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 (trait 5). */
.media { overflow: hidden; border-radius: var(--radius-md, 16px); }
.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.35);
  }
}
.hover-lift:active { transform: translateY(-2px); }

/* 3. Zmiana koloru — colour swap (fills to accent orange, dark ink) */
.hover-fill { transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent); 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); border-color: var(--accent); }
}

/* 4. Ruchoma strzalka — moving arrow (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); } }

.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 (grows from the left) */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  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); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--accent); }
.link-underline-center { background-position: 50% 100%; }

/* ==========================================================================
   Cards / tiles — resting shadow + lift; inner image zoom + arrow nudge (traits 4 & 5)
   ========================================================================== */
.card {
  position: relative;
  z-index: 1;
  background: var(--black2);           /* dominant graphite card; light-band sections override to --white */
  color: var(--white);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);  /* resting shadow is part of the card */
  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.45); }
  .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); outline-offset: 2px; }

/* .card is padless so flush media reaches its edges — text goes in a padded inner wrapper. */
.card-body { padding: var(--padding-vertical, 32px) var(--padding-horizontal, 32px); }

/* ==========================================================================
   Inputs (contact / quote forms)
   ========================================================================== */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--light3, #c0c7ce);
  border-radius: var(--radius-sm, 8px);
  background: var(--white);
  color: var(--black3);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--light3, #c0c7ce); }
.field:hover { border-color: var(--accent); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field:user-invalid { border-color: #e5484d; }
.field:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   Content icons — monochrome masks, recoloured via --icon-color (trait 2: dark on orange, orange on dark)
   ========================================================================== */
.svc-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--icon-color, var(--accent));   /* steer paint via --icon-color, never a raw background-color */
  -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/orange tile -> light glyph; light surface -> accent. */

/* Icon square — the design's boxed-icon motif: 48px accent square, dark glyph (trait 2). */
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md, 16px);
  background-color: var(--accent);
  color: var(--accent-contrast, var(--black3));
}
.icon-badge .svc-icon { --icon-color: var(--accent-contrast, var(--black3)); width: 32px; height: 32px; }

/* ==========================================================================
   Step number badge — numbered process steps (optically-centred digits)
   ========================================================================== */
.step-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md, 16px);
  background-color: var(--accent);
  color: var(--accent-contrast, var(--black3));
}
.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;
}
