/* ══════════════════════════════════════════════════
   KANCELARIA POKUSZYŃSKI – WSPÓLNY ARKUSZ STYLÓW
   Wersja: 2025-SEO
   ══════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0d1b2a;
  --navy-mid:  #1a2e42;
  --gold:      #b8962e;
  --gold-lt:   #d4af55;
  --cream:     #f7f3ee;
  --warm-gray: #e8e2d9;
  --text:      #2c2c2c;
  --text-muted:#6b6b6b;
  --white:     #ffffff;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', sans-serif;
  --radius:    4px;
  --shadow:    0 4px 24px rgba(13,27,42,.12);
  --shadow-lg: 0 12px 48px rgba(13,27,42,.18);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── SKIP LINK ──────────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--gold);
  color: var(--navy); padding: 8px 16px; z-index: 9999; border-radius: 0 0 4px 0;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── HEADER / NAV ───────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 72px;
}
.logo {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: var(--white); line-height: 1.25;
  display: flex; flex-direction: column;
}
.logo span { color: var(--gold-lt); font-size: .78rem; font-weight: 400; letter-spacing: .05em; }
nav { display: flex; gap: 0; align-items: center; }
nav a {
  color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 500;
  padding: 8px 18px; border-radius: var(--radius);
  transition: color .2s, background .2s; letter-spacing: .03em;
}
nav a:hover, nav a[aria-current="page"] { color: var(--gold-lt); background: rgba(255,255,255,.06); }
.nav-cta {
  margin-left: 12px; background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO (podstrony) ──────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 24px 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23b8962e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 16px;
  display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--gold-lt); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,.3); }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 12px;
}
.page-hero h1 em { color: var(--gold-lt); font-style: normal; }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 600px; line-height: 1.75;
}

/* ── SECTIONS ───────────────────────────────────── */
section { padding: 72px 24px; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-muted); max-width: 640px; line-height: 1.75;
}
.section-header { margin-bottom: 48px; }

/* ── BUTTONS ────────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: .95rem;
  padding: 14px 32px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .2s, transform .15s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--navy); font-weight: 500; font-size: .95rem;
  padding: 13px 31px; border-radius: var(--radius); border: 1px solid var(--warm-gray);
  cursor: pointer; transition: border-color .2s, background .2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--navy); background: var(--cream); }
.btn-outline-white {
  background: transparent; color: var(--white); font-weight: 500; font-size: .95rem;
  padding: 13px 31px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.35);
  cursor: pointer; transition: border-color .2s, background .2s; display: inline-block;
}
.btn-outline-white:hover { border-color: var(--gold-lt); background: rgba(255,255,255,.06); }

/* ── CTA BOTTOM ─────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  padding: 72px 24px; text-align: center;
}
.cta-section h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--white); margin-bottom: 14px;
}
.cta-section p {
  font-size: 1rem; color: rgba(255,255,255,.72); margin-bottom: 32px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.cta-phones { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-phone {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 14px 24px;
  color: var(--white); font-size: 1.05rem; font-weight: 600;
  transition: background .2s, border-color .2s;
}
.cta-phone:hover { background: rgba(255,255,255,.14); border-color: var(--gold); color: var(--gold-lt); }
.cta-phone svg { width: 18px; height: 18px; fill: var(--gold-lt); }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: #080f17; color: rgba(255,255,255,.55);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 320px; }
footer h4 {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 16px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
footer li a:hover { color: var(--gold-lt); }
.footer-bottom {
  max-width: 1140px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 16px 24px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .hamburger { display: flex; }
  .nav-inner { position: relative; }
  section { padding: 52px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
