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

:root {
  /* Colors */
  --brand-grad: ;
  --white: #ffffff;
  --black3: #11110f;
  --light1: #f2f4f5;
  --brand: #ffffff;
  --black2: #393a3d;
  --light2: #dbdedf;
  --light3: #c0c2c3;
  --black1: #5b5c60;

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

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a warm orange LEFT-TO-RIGHT gradient (#f4811d → #e08b13), white 18px/600 label,
      radius 8px, ~58px tall, flat (no drop shadow), with a trailing right-arrow glyph that slides
      +4px on hover. The conversion colour is this orange — NOT the --brand token (which is white).
   2) Secondary is a solid dark charcoal box (var(--black3)), white label, radius 12px — deliberately
      quieter and slightly rounder than the primary; it differs in BOTH colour and radius, never an
      orange clone of the CTA.
   3) Cards are image tiles with a dark bottom-up gradient scrim and text anchored low; ONE uniform
      16px radius on all four corners, no resting border, lifted with a soft GREY-tinted ambient
      shadow (rgba(149,157,165,…)) — never pure black. A "featured" card may carry an 8px solid
      orange frame (.card--featured).
   4) Inputs are near-square, very slightly rounded (4px) light-grey fill boxes (var(--light1)) with
      no visible border at rest and the label floating on its own line above — flat and boxy, never a
      pill, never underline-only.
   5) Accent containers are perfect circles: process step discs, rating/icon glyphs and icon buttons
      are fully round (--radius-pill); an active/current disc flips from dark var(--black3) to the
      orange accent. */

:root {
  /* Semantic accent — the design's PRIMARY CTA colour (orange gradient). The palette tokens have no
     orange, and --brand is white (the logo), so the accent is defined here from the design pixels. */
  --accent: #f4811d;                /* warm orange — start of the CTA gradient / accent text */
  --accent-2: #e08b13;              /* darker amber — END of the CTA gradient */
  --accent-contrast: var(--white);  /* readable label on the accent fill */

  /* The primary button is FLAT in this design (no resting drop shadow). */
  --btn-shadow: none;

  /* Radius scale, read per element off the design (inputs < buttons < cards < circles). */
  --radius-sm: 4px;                 /* inputs / small chips — hero form fields are rounded-4 */
  --radius-md: 12px;                /* secondary button / medium boxes — matches --border-radius */
  --radius-lg: 16px;                /* cards / image tiles — service + portfolio tiles are rounded-16 */
  --radius-pill: 999px;             /* fully-round: icon buttons, step discs, rating circles */

  /* Primary button geometry, from the close-up / Figma: radius 8px, padding 16px 24px, height 58px. */
  --btn-radius: 8px;                /* the primary CTA's REAL radius — also shapes the shared slider arrows */
  --btn-height: 58px;
  --btn-pad-inline: 24px;

  /* Elevation — tinted with the design's grey (149,157,165), one light source from above. */
  --shadow-card-hover: 0 2px 4px rgba(149, 157, 165, 0.10),
                       0 14px 28px -12px rgba(149, 157, 165, 0.30);
}

/* ------------------------------------------------------------------ Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height, 58px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 24px);
  border: 2px solid transparent;
  border-radius: var(--btn-radius, var(--radius-md, var(--border-radius, 8px)));
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: var(--btn-transform, none);
  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);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — the orange gradient conversion CTA. A section may recolour it on a coloured band by
   passing a solid --btn-bg / --btn-fg; base.css reads them here so the override works. */
.btn-primary {
  background: var(--btn-bg,
    linear-gradient(90deg, var(--accent, var(--brand)), 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: 0 8px 20px -6px color-mix(in srgb, var(--accent, var(--brand)) 45%, transparent);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); }

/* Secondary — solid dark charcoal box, white label, slightly rounder (radius 12px). Distinct and
   lower-priority. A section may recolour it on a band via --btn-bg (fill) / --btn-fg (label). */
.btn-secondary {
  background: var(--btn-bg, var(--black3));
  color: var(--btn-fg, var(--white));
  border-radius: var(--radius-md, 12px);
}
@media (hover: hover) {
  .btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--btn-bg, var(--black2));
  }
}
.btn-secondary:active { transform: translateY(0); }

/* Ghost / text — no chrome until hover. */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--black3, currentColor));
  border-color: transparent;
  padding-inline: 10px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 10%, transparent); }
}
.btn-ghost:active { transform: translateY(0); }

/* Icon button — fully round, accent fill (e.g. slider arrows, lightbox close). */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border: none;
  border-radius: var(--radius-pill, 999px);
  display: inline-flex; align-items: center; justify-content: center;
  background: 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;
}
@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; }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

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

/* ------------------------------------------------------------------ Hover 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); }

/* 2. Uniesienie — lift + grey-tinted 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: var(--shadow-card-hover);
  }
}
.hover-lift:active { transform: translateY(-2px); }

/* 3. Zmiana koloru — fill swap (to accent) */
.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)); }
}

/* 4. Ruchoma strzałka — the arrow nudges along the direction it points (default → right) */
.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: var(--arrow-nudge, translateX(4px)); } }

/* 5. Dodanie podkreślenia — animated underline for inline text links (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); }

/* ------------------------------------------------------------------ Cards / tiles */

.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg, var(--border-radius));
  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: var(--shadow-card-hover);
  }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: var(--arrow-nudge, 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 images reach the edges; text goes in this padded inner wrapper. */
.card-body { padding: 24px var(--padding-horizontal, 24px); }

/* Featured tile — the design's 8px solid orange frame (why-us hero card). */
.card--featured { border: 8px solid var(--accent); }

/* ------------------------------------------------------------------ Inputs */

.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, var(--border-radius, 4px));
  background: var(--light1, #f2f4f5);
  color: var(--black3);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--black1, #5b5c60); }
.field:hover { border-color: var(--light3, #c0c2c3); }
.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; }

/* ------------------------------------------------------------------ Missing-data placeholder */

.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ------------------------------------------------------------------ Floating buttons (popup FAB + cookies) */

/* The hub's popup launcher (PopupForm) and cookie banner/reopener (cookie-consent.js)
   paint with --brand, which is WHITE here (the logo) — white circle, white icon.
   Re-anchor --brand to the orange accent on just these elements.
   Kept in .hub/base/base.css (canonical): public/base.css is re-copied from here
   on every dev-server start, so an edit only in public/ gets wiped. */
.popup-fab,
.cc-root {
  --brand: var(--accent);
}

/* ------------------------------------------------------------------ Social icons: official brand logos */

/* Client asked for the ORIGINAL brand logos in their own colours (not the shared
   one-colour icon set). SocialLinks stays untouched (HUB_OWNED); each known link is
   matched by its href — so links the client adds later via live-config get it too —
   and its mono glyph is swapped for the full-colour logo from /brand/. */
.social-links a.social-link[href*="facebook.com"],
.social-links a.social-link[href*="instagram.com"],
.social-links a.social-link[href*="goo.gl"],
.social-links a.social-link[href*="google."],
.social-links a.social-link[href*="mybuilder.com"] {
  display: inline-flex;
  width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  font-size: 0;
  opacity: 1;
  background: center / contain no-repeat;
  transition: transform 0.2s ease;
}
/* Four full-colour logos fit one row of the narrow footer column. */
footer .social-links.footer-social { gap: 8px; }
.social-links a.social-link[href*="facebook.com"] { background-image: url("/brand/facebook.svg"); }
.social-links a.social-link[href*="instagram.com"] { background-image: url("/brand/instagram.svg"); }
.social-links a.social-link[href*="goo.gl"],
.social-links a.social-link[href*="google."] { background-image: url("/brand/google-g.svg"); }
.social-links a.social-link[href*="mybuilder.com"] { background-image: url("/brand/mybuilder.webp"); }
.social-links a.social-link[href*="facebook.com"] svg,
.social-links a.social-link[href*="instagram.com"] svg,
.social-links a.social-link[href*="goo.gl"] svg,
.social-links a.social-link[href*="google."] svg {
  visibility: hidden;
}
@media (hover: hover) {
  .social-links a.social-link:is([href*="facebook.com"], [href*="instagram.com"], [href*="goo.gl"], [href*="google."], [href*="mybuilder.com"]):hover {
    transform: scale(1.1);
  }
}

/* ------------------------------------------------------------------ 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; }
