/* MW Projekt — styles.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --red: #8b2e2e;
  --red-light: #a83535;
  --dark: #1c1c1c;
  --mid: #4a4a4a;
  --muted: #7a7a7a;
  --border: #d8d4cc;
  --bg: #f7f5f1;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAWIGACJA ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.5px;
}
.nav-logo .mw { color: var(--red); }
.nav-logo .projekt { color: var(--mid); }
.nav-logo .sep { width: 1px; height: 14px; background: var(--border); margin: 0 8px 0 6px; align-self: center; }
.nav-logo .tagline { font-size: 11px; font-weight: 300; color: var(--muted); letter-spacing: 0.3px; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.3px;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--dark); border-bottom-color: var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { background: var(--red-light); }

/* hamburger – mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  padding: 32px 48px;
  gap: 24px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

/* ── STOPKA ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .mw { color: var(--white); font-weight: 600; font-size: 16px; }
.footer-brand .projekt { color: rgba(255,255,255,0.4); font-size: 16px; }
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.footer-nip { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── WSPÓLNE ELEMENTY ── */
.section-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 13px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.2px;
}
.btn-primary:hover { background: var(--red-light); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  border-radius: 3px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--dark); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--bg);
  padding: 64px 48px 56px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  max-width: 640px;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 17px;
  color: var(--mid);
  max-width: 560px;
  line-height: 1.7;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 48px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-header { padding: 48px 24px 40px; }
  .breadcrumb { padding: 14px 24px; }
  footer { padding: 40px 24px; }
}

/* ── MOTYW GEOMETRYCZNY — ornamentyka architektoniczna ── */
/* SVG pattern: kratownica z rozetami, jak z fasady zabytkowego budynku */
.hero-pattern {
  position: relative;
  overflow: hidden;
}
.hero-pattern::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 480px;
  height: 100%;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect width='80' height='80' fill='none'/%3E%3Crect x='0.5' y='0.5' width='79' height='79' fill='none' stroke='%238b2e2e' stroke-width='0.5'/%3E%3Crect x='20.5' y='20.5' width='39' height='39' fill='none' stroke='%238b2e2e' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='10' fill='none' stroke='%238b2e2e' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%238b2e2e'/%3E%3Cline x1='40' y1='20' x2='40' y2='0' stroke='%238b2e2e' stroke-width='0.5'/%3E%3Cline x1='40' y1='60' x2='40' y2='80' stroke='%238b2e2e' stroke-width='0.5'/%3E%3Cline x1='20' y1='40' x2='0' y2='40' stroke='%238b2e2e' stroke-width='0.5'/%3E%3Cline x1='60' y1='40' x2='80' y2='40' stroke='%238b2e2e' stroke-width='0.5'/%3E%3Cline x1='20' y1='20' x2='0' y2='0' stroke='%238b2e2e' stroke-width='0.3'/%3E%3Cline x1='60' y1='20' x2='80' y2='0' stroke='%238b2e2e' stroke-width='0.3'/%3E%3Cline x1='20' y1='60' x2='0' y2='80' stroke='%238b2e2e' stroke-width='0.3'/%3E%3Cline x1='60' y1='60' x2='80' y2='80' stroke='%238b2e2e' stroke-width='0.3'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
  /* gradient mask: widoczny po prawej, zanika w lewo */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* ozdobna linia sekcji */
.section-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-ornament::before,
.section-ornament::after {
  content: '';
  height: 1px;
  background: var(--border);
}
.section-ornament::before { width: 24px; }
.section-ornament::after { flex: 1; }
.section-ornament span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ozdobnik stopki — pozioma linia z rozetą */
.footer-ornament {
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.25;
}
.footer-ornament svg { width: 120px; height: 12px; }
