/* ============================================================
   Policraft — wizytówka internetowa
   Paleta: ciepła biel + grafit + miedziany akcent
   ============================================================ */

:root {
  --bg: #f7f4ef;
  --bg-elev: #ffffff;
  --ink: #1e2a3a;
  --ink-soft: #3d4f63;
  --muted: #7a8694;
  --line: #e0e4ea;
  --accent: #d4a24b;
  --accent-dark: #b8872e;
  --navy: #2d4a7a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 21, 20, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(22, 21, 20, 0.15);
  --max: 1140px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f7f4ef 70%, #d4a24b22 100%);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 4px 24px -12px #d4a24b33;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: auto;
  height: 48px;
  max-width: 220px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 2px 12px #d4a24b33);
}
.section {
  position: relative;
  overflow: hidden;
}

/* Dekoracyjny akcent w tle sekcji */
.section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #d4a24b33 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Dodatkowy akcent w sekcji hero */
.hero::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #2d4a7a22 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.brand-logo.small { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: var(--navy);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-glow {
  position: absolute;
  inset: -10% 40% 30% -10%;
  background: radial-gradient(60% 60% at 30% 40%, rgba(212, 162, 75, 0.18), transparent 70%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.hero-title .dot { color: var(--accent); }
.hero-sub {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero-lead {
  max-width: 600px;
  font-size: 1.075rem;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.col-label {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.col-label .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 500;
}
.col-label .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 600;
}

.col-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 24ch;
}

.col-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 20px;
}

/* About bullets */
.bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.bullets strong { color: var(--ink); font-weight: 600; }

.about-subtitle {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  color: var(--accent-dark);
  margin: 32px 0 16px;
}

/* Services cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0 16px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.card-step {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.card p { margin: 0; font-size: 0.97rem; }

/* Contact */
.contact-lead { margin-bottom: 32px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-key {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-val {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
}
.contact-val.link {
  transition: color 0.2s ease;
  border-bottom: 1px dashed transparent;
}
.contact-val.link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ===== Formularz kontaktowy ===== */
.contact-form {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 162, 75, 0.18);
}
.field textarea { resize: vertical; min-height: 120px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
  flex-shrink: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 0.95rem;
}
.alert-ok  { border-color: #6f9c6f; color: #2f5e2f; background: #f0f6ef; }
.alert-err { border-color: #c98a8a; color: #842424; background: #faefef; }

/* ===== Strona 404 ===== */
.err {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.err-inner { text-align: center; max-width: 640px; position: relative; z-index: 2; }
.err-code {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.err-code .dot { color: var(--accent); }
.err-title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--ink-soft);
  margin: 8px 0 20px;
}
.err-text {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 32px;
}
.err-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.err-glow {
  position: absolute;
  inset: 10% -10% 0 -10%;
  background: radial-gradient(45% 55% at 50% 40%, rgba(212, 162, 75, 0.18), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.footer-meta a { color: var(--muted); transition: color 0.2s ease; }
.footer-meta a:hover { color: var(--accent-dark); }
.dot-sep { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

.btn-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-back-top:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}
.back-top-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav { height: 64px; }
  .nav-links { gap: 18px; font-size: 0.9rem; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 72px 0; }
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .col-label {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }
  .col-label .num { font-size: 1.4rem; }
}

@media (max-width: 520px) {
  .nav-links { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .contact-grid { padding: 20px; }
  .lang-btn { width: 30px; height: 26px; font-size: 0.68rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== Reduce motion preference ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
