/*
Theme Name: Meble Tomasz Przybylski
Theme URI: https://mebletomaszprzybylski.pl
Author: OpenAI
Description: Lekki, responsywny motyw firmowy dla pracowni mebli na wymiar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mtp
*/

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #1f2326;
  --muted: #666b70;
  --accent: #7a5b3a;
  --accent-dark: #5c432a;
  --line: #e6e0d8;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,.07);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,245,241,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.05rem;
}
.custom-logo { max-height: 52px; width: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav a { font-weight: 650; font-size: .95rem; }
.main-nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 12px;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(21,23,24,.82), rgba(21,23,24,.30)),
    var(--hero-image, linear-gradient(135deg,#4b4034,#98806a));
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-content { max-width: 760px; padding: 90px 0; }
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 20px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 650px;
  color: rgba(255,255,255,.88);
  margin: 0 0 30px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  border: 1px solid transparent;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-dark); }
.btn.secondary { background: transparent; border-color: rgba(255,255,255,.55); }
.btn.secondary:hover { background: rgba(255,255,255,.10); }

.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}
.gallery .tile {
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0,0,0,.08), rgba(0,0,0,.0)),
    linear-gradient(135deg,#c8b9a8,#8e7861);
  position: relative;
  border: 1px solid var(--line);
}
.gallery .tile:first-child { grid-row: span 2; min-height: 574px; }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}
.step .num { color: var(--accent); font-weight: 850; font-size: .9rem; }
.step h3 { margin: 8px 0 8px; }
.step p { margin: 0; color: var(--muted); }

.contact-box {
  background: #202224;
  color: #fff;
  border-radius: 26px;
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
}
.contact-box h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
.contact-box p { color: rgba(255,255,255,.72); margin: 0; }
.contact-data { display: grid; gap: 12px; }
.contact-data a {
  display: block;
  background: rgba(255,255,255,.08);
  padding: 14px 16px;
  border-radius: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: .92rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.content-wrap { padding: 70px 0; }
.entry-content { max-width: 820px; }
.entry-content h1 { font-size: clamp(2.2rem,5vw,4rem); line-height: 1.05; }
.entry-content a { text-decoration: underline; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .tile:first-child { grid-row: auto; grid-column: 1 / -1; min-height: 360px; }
  .contact-box { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 600px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .section { padding: 68px 0; }
  .hero { min-height: 70vh; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .tile, .gallery .tile:first-child { min-height: 260px; grid-column: auto; }
}
