/* ==========================================================
   Rzeczoznawca Majątkowy Beata Gregorczuk
   ========================================================== */

:root {
  --green-900: #12261f;
  --green-800: #1a332a;
  --green-700: #234437;
  --green-600: #2f5a49;
  --gold: #c9a76b;
  --gold-dark: #a8874d;
  --cream: #f6f2ea;
  --cream-2: #efe8db;
  --paper: #fbf9f5;
  --ink: #1d2420;
  --muted: #5d665f;
  --line: #e3dccd;
  --white: #fff;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -18px rgba(18, 38, 31, .28);
  --shadow-sm: 0 6px 18px -10px rgba(18, 38, 31, .25);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { flex-shrink: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--green-800); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn--ghost { border-color: var(--green-800); color: var(--green-800); }
.btn--ghost:hover { background: var(--green-800); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0,0,0,.4); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-800); }
.logo__mark { width: 42px; height: 42px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--green-900); }
.logo__text small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.nav a:hover::after { width: 100%; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; margin-left: auto; }
.burger span { display: block; height: 2px; background: var(--green-900); margin: 6px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(201,167,107,.16), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--cream));
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { display: block; color: var(--green-600); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; fill: var(--gold-dark); }

.hero__visual { position: relative; max-width: 560px; justify-self: end; width: 100%; }
.collage {
  margin: 0;
  position: relative;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.collage::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  transform: translate(16px, 16px);
  z-index: -1;
}
.collage img { border-radius: 12px; width: 100%; }

.status-badge {
  position: absolute;
  left: -22px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-900);
  box-shadow: var(--shadow);
}
.status-badge__dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa39d; }
.status-badge.is-open .status-badge__dot { background: #2fa36b; box-shadow: 0 0 0 0 rgba(47,163,107,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,163,107,0); } }

.clients {
  list-style: none;
  margin: 56px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 48px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-700);
}
.clients li { display: flex; align-items: center; gap: 12px; }
.clients li::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--dark {
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(201,167,107,.12), transparent 60%),
    var(--green-900);
  color: rgba(255,255,255,.78);
}
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section__head--light h2 { color: var(--white); }
.section__head--light p:last-child { color: rgba(255,255,255,.7); }
.section__head--light .eyebrow { color: var(--gold); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__head--row h2 { margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--cream);
  margin-bottom: 22px;
  transition: background .25s;
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.service:hover .service__icon { background: var(--green-800); }
.service:hover .service__icon svg { stroke: var(--gold); }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.reason { padding: 34px 28px 10px 0; border-right: 1px solid rgba(255,255,255,.12); padding-left: 28px; }
.reason:first-child { padding-left: 0; }
.reason:last-child { border-right: 0; }
.reason__num { font-family: var(--font-head); font-weight: 300; font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 18px; }
.reason h3 { color: var(--white); }
.reason p { margin: 0; font-size: .98rem; }

/* Feature */
.feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.feature__content > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 6px 0 24px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.checklist li::before {
  content: "";
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23c9a76b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  flex-shrink: 0;
}
.feature .btn { margin-top: 8px; }
.quote {
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quote::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border: 2px solid rgba(201,167,107,.35);
  border-radius: 50%;
}
.quote svg { width: 44px; height: 44px; fill: var(--gold); margin-bottom: 18px; }
.quote p { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; line-height: 1.35; }
.quote a { font-weight: 700; font-size: 1.3rem; color: var(--gold); text-decoration: none; }

/* About */
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: center; }
.about__aside { text-align: center; }
.monogram {
  width: 210px; height: 210px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 4.4rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--green-900);
  box-shadow: 0 0 0 10px var(--cream), 0 0 0 12px var(--gold), var(--shadow);
}
.about__name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--green-900); margin: 0; }
.about__role { color: var(--muted); font-size: .95rem; }
.about__content > p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.value { background: var(--white); border-radius: var(--radius); padding: 20px; border-left: 3px solid var(--gold); }
.value strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--green-900); font-weight: 700; }
.value span { font-size: .9rem; color: var(--muted); }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__thumb { display: block; aspect-ratio: 16/10; background: var(--cream); overflow: hidden; }
.post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .post__thumb img { transform: scale(1.04); }
.post__thumb--1 { background: linear-gradient(135deg, var(--green-700), var(--green-900)); }
.post__thumb--2 { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.post__thumb--3 { background: linear-gradient(135deg, var(--green-600), var(--green-800)); }
.post__body { padding: 24px 26px 28px; }
.post time { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.post h3 { margin: 8px 0 10px; font-size: 1.2rem; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--green-600); }
.post p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Contact */
.section--contact { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.contact__lead { color: var(--muted); font-size: 1.1rem; }
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--green-900);
  text-decoration: none;
  margin: 10px 0 34px;
  transition: color .2s;
}
.contact__phone svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--green-800); fill: var(--gold); }
.contact__phone:hover { color: var(--green-600); }
.contact__address { display: flex; gap: 16px; padding: 24px; background: var(--white); border-radius: var(--radius); max-width: 520px; }
.contact__address > svg { width: 26px; height: 26px; fill: var(--gold-dark); margin-top: 2px; }
.contact__address div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.contact__address span { color: var(--muted); margin-bottom: 8px; }

.hours { background: var(--green-900); color: rgba(255,255,255,.8); border-radius: var(--radius-lg); padding: 36px 34px; box-shadow: var(--shadow); }
.hours h3 { color: var(--white); margin-bottom: 18px; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .98rem; }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { color: var(--gold); font-weight: 700; }
.hours li.is-today span:first-child::after { content: " · dziś"; font-weight: 500; }

/* Footer */
.footer { background: var(--green-900); color: rgba(255,255,255,.65); padding: 34px 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__inner > div { display: flex; flex-direction: column; }
.footer strong { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Mobile call bar */
.call-bar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(18,38,31,.55);
}
.call-bar svg { width: 20px; height: 20px; fill: var(--gold); }


/* ---------- Blog: podstrony ---------- */
.container--narrow { width: min(780px, 100% - 40px); }
.section--tight { padding: 56px 0 100px; }

.page-hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--paper), var(--cream)); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--muted); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--green-600); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: var(--white); }
.pagination a:hover { border-color: var(--green-600); }
.pagination .is-current { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 40px 0; }

.article__head { padding: 56px 0 32px; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.article__head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .95rem; margin: 0; }
.article__meta time { color: var(--gold-dark); font-weight: 700; }
.article__image { width: 100%; border-radius: var(--radius-lg); margin: 36px 0 0; box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; }

.prose { padding: 40px 0 10px; font-size: 1.07rem; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-dark); font-weight: 700; }
.prose a { color: var(--green-600); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 500; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose strong { color: var(--green-900); }

.article__cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 40px 0 100px; padding: 30px 32px; background: var(--green-900); border-radius: var(--radius-lg); color: rgba(255,255,255,.75); }
.article__cta strong { display: block; color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: #d8b97f; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .reason { padding: 30px 24px 24px !important; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .header__cta { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }

  .hero { padding: 40px 0 30px; }
  .hero__grid, .feature, .about, .contact { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { justify-self: center; max-width: 520px; }
  .status-badge { left: 10px; bottom: -18px; }
  .section { padding: 72px 0; }
  .posts { grid-template-columns: 1fr; max-width: 520px; }
  .values { grid-template-columns: 1fr; }
  .call-bar { display: flex; }
  body { padding-bottom: 84px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services, .reasons { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .collage { padding: 8px; }
  .collage::before { transform: translate(10px, 10px); }
  .clients { justify-content: flex-start; gap: 10px 24px; font-size: 1rem; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .contact__phone svg { width: 46px; height: 46px; padding: 12px; }
  .monogram { width: 170px; height: 170px; font-size: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
