/* MCAD Sp. z o.o. — demo rebuild — style.css */

:root {
  --color-ink: #14181c;
  --color-ink-2: #1c2329;
  --color-surface: #ffffff;
  --color-surface-alt: #f2f4f6;
  --color-primary: #2f8fce;
  --color-primary-dark: #1f6a9e;
  --color-accent: #ff9a2e;
  --color-text: #1c2226;
  --color-text-muted: #5b6670;
  --color-text-on-ink: #eef2f5;
  --color-text-on-ink-muted: #9fadb8;
  --color-border: #e1e5e9;
  --color-border-ink: #2a333b;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: var(--font-body);

  --container: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 24, 28, 0.12);

  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
@media (max-width: 720px) {
  section { padding: 48px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--color-ink); }
.section-head p { font-size: 17px; margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--color-text-on-ink); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-ink); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(20, 24, 28, 0);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header.is-scrolled {
  background: var(--color-ink);
  box-shadow: var(--shadow-md);
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; flex-shrink: 0; white-space: nowrap; }
.brand img { height: 34px; width: auto; flex-shrink: 0; }
.nav-desktop { display: flex; align-items: center; gap: 18px; min-width: 0; margin-left: 24px; }
.nav-desktop a {
  color: var(--color-text-on-ink-muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone { color: #fff; font-weight: 700; font-size: 14.5px; display: none; white-space: nowrap; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--color-ink);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
  z-index: 99;
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-mobile .container { padding-top: 24px; padding-bottom: 24px; }
.nav-mobile a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-ink);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.nav-mobile .nav-mobile-contact { margin-top: 24px; color: var(--color-text-on-ink-muted); font-size: 15px; }
.nav-mobile .nav-mobile-contact a { display: inline; border: none; padding: 0; color: var(--color-primary); font-weight: 700; }

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none !important; }
}
@media (min-width: 1300px) {
  .nav-phone { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 88px;
  background: linear-gradient(160deg, var(--color-ink) 0%, #1e2731 60%, #24344a 100%);
  color: var(--color-text-on-ink);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(circle at center, rgba(47,143,206,0.35), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 680px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); color: #fff; }
.hero .lead { font-size: 18px; color: var(--color-text-on-ink-muted); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--color-text-on-ink-muted); }

.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--color-ink);
  color: var(--color-text-on-ink);
}
.page-hero .eyebrow { color: var(--color-primary); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.page-hero p { color: var(--color-text-on-ink-muted); max-width: 640px; font-size: 17px; margin-bottom: 0; }
.breadcrumb { font-size: 13px; color: var(--color-text-on-ink-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-text-on-ink-muted); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-surface-alt); padding: 40px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .num { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--color-ink); }
.trust-item .label { font-size: 13.5px; color: var(--color-text-muted); margin-top: 4px; }
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Offer cards ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(47,143,206,0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; color: var(--color-ink); }
.card p { flex: 1; font-size: 15px; }
.card-link { font-weight: 700; color: var(--color-primary); font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Machine park / signature section ---------- */
.machine-section { background: var(--color-ink); color: var(--color-text-on-ink); }
.machine-section .section-head h2 { color: #fff; }
.machine-section .section-head p { color: var(--color-text-on-ink-muted); }
.machine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 780px) { .machine-grid { grid-template-columns: 1fr; } }
.machine-card {
  background: var(--color-ink-2);
  border: 1px solid var(--color-border-ink);
  border-radius: var(--radius);
  padding: 28px;
}
.machine-card h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.spec-table tr { border-bottom: 1px solid var(--color-border-ink); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 9px 0; font-size: 14.5px; }
.spec-table td:first-child { color: var(--color-text-on-ink-muted); }
.spec-table td:last-child { color: #fff; font-weight: 700; text-align: right; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--color-text-on-ink);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--color-border-ink);
}
.chip.is-primary { background: rgba(47,143,206,0.18); color: #bfe0f6; border-color: rgba(47,143,206,0.4); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 8px; }
.process-step .step-num {
  counter-increment: step;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.process-step .step-num::before { content: counter(step); }
.process-step h3 { font-size: 16.5px; color: var(--color-ink); }
.process-step p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Realizacje grid ---------- */
.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .realizacje-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .realizacje-grid { grid-template-columns: 1fr; } }
.realizacja-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.realizacja-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.realizacja-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--color-surface-alt); }
.realizacja-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.realizacja-card:hover .thumb img { transform: scale(1.05); }
.realizacja-card .body { padding: 18px 20px 20px; }
.realizacja-card h3 { font-size: 16px; color: var(--color-ink); margin-bottom: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}
.tag.tag-branza { background: rgba(47,143,206,0.1); color: var(--color-primary-dark); }
.tag.tag-material { background: rgba(255,154,46,0.14); color: #a15c00; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.empty-state { text-align: center; padding: 48px 0; color: var(--color-text-muted); display: none; }
.empty-state.is-visible { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 28px; font-size: 16.5px; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-band .btn-primary:hover { background: var(--color-ink); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 26px; color: var(--color-ink); }
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(47,143,206,0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 2px; }
.contact-list .value { font-weight: 700; color: var(--color-ink); font-size: 15.5px; }
.contact-list a.value:hover { color: var(--color-primary); }

.form-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--color-border);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; color: var(--color-ink); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--color-text);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47,143,206,0.15);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .form-two { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--color-text-muted); margin-top: 14px; }

.map-embed {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Service page pieces ---------- */
.service-hero-figure {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-ink);
}
.service-hero-figure img { width: 100%; height: auto; }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 16px; }
.why-item .num { font-weight: 800; color: var(--color-primary); font-size: 20px; flex-shrink: 0; }
.why-item h3 { font-size: 16.5px; color: var(--color-ink); margin-bottom: 6px; }
.why-item p { font-size: 14.5px; margin-bottom: 0; }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.related-card h3 { font-size: 16px; margin-bottom: 4px; color: var(--color-ink); }
.related-card p { font-size: 13.5px; margin-bottom: 0; }
.related-card svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }

.product-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .product-categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-categories { grid-template-columns: 1fr; } }
.product-cat { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; }
.product-cat h3 { font-size: 15.5px; color: var(--color-ink); margin-bottom: 10px; }
.product-cat ul { display: flex; flex-direction: column; gap: 6px; }
.product-cat li { font-size: 13.5px; color: var(--color-text-muted); padding-left: 14px; position: relative; }
.product-cat li::before { content: "—"; position: absolute; left: 0; color: var(--color-primary); }

.text-block { max-width: 760px; }
.text-block h2 { font-size: 26px; color: var(--color-ink); margin-top: 1.4em; }
.text-block h2:first-child { margin-top: 0; }
.text-block p { font-size: 16px; }
.stat-callout {
  display: flex; gap: 28px; flex-wrap: wrap;
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.stat-callout .stat .num { font-size: 22px; font-weight: 800; color: var(--color-ink); }
.stat-callout .stat .label { font-size: 12.5px; color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: var(--color-text-on-ink-muted); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--color-border-ink);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-eu img { height: 30px; width: auto; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
