/* =====================================================================
   Kancelaria Adwokacka Robert Bryk — style
   Motyw: granat + złoto + kremowe tło. Serif w nagłówkach (Cormorant),
   sans w treści (Inter). Bez frameworka.
   ===================================================================== */

:root {
  --navy:        #14253b;
  --navy-deep:   #0e1b2c;
  --gold:        #b08d57;
  --gold-soft:   #c8a978;
  --cream:       #f7f4ee;
  --cream-2:     #efeae0;
  --ink:         #20262e;
  --ink-soft:    #4b5563;
  --line:        #e2dcd0;
  --white:       #ffffff;

  --max:         1140px;
  --radius:      10px;
  --shadow:      0 18px 50px rgba(14, 27, 44, .10);
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ───────────── Typografia ───────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0; }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.section-intro { color: var(--ink-soft); max-width: 60ch; }

/* ───────────── Przyciski ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-block { width: 100%; }

/* ───────────── Nagłówek / nawigacja ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 37, 59, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 9px;
  background: var(--gold); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .5px;
}
.brand-mark--sm { width: 38px; height: 38px; font-size: 16px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: #fff; }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: #fff; }
.main-nav .nav-phone {
  color: var(--gold-soft); font-weight: 600;
  border: 1.5px solid rgba(200,169,120,.5); border-radius: 8px; padding: 8px 16px;
}
.main-nav .nav-phone:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(14,27,44,.92), rgba(20,37,59,.94)),
    radial-gradient(120% 90% at 80% -10%, #24405f 0%, transparent 55%),
    var(--navy-deep);
  color: var(--cream);
  padding: clamp(70px, 12vw, 140px) 0 clamp(70px, 11vw, 130px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.hero-inner { max-width: 760px; }
.hero-eyebrow { color: var(--gold-soft); letter-spacing: .22em; text-transform: uppercase; font-size: 13px; font-weight: 600; margin: 0 0 22px; }
.hero-title { font-size: clamp(34px, 6vw, 62px); color: #fff; font-weight: 600; letter-spacing: -.01em; }
.hero-lead { margin: 26px 0 36px; font-size: clamp(17px, 2.3vw, 20px); color: rgba(247,244,238,.82); max-width: 60ch; }
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ───────────── Sekcje ───────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.section p { color: var(--ink-soft); }

.facts { list-style: none; padding: 0; margin: 26px 0 0; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.facts strong { color: var(--navy); display: inline-block; margin-right: 6px; }

.about-aside {
  background: var(--navy); color: var(--cream);
  border-radius: var(--radius); padding: 40px 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.about-aside::before {
  content: "\201C"; position: absolute; top: 6px; left: 22px;
  font-family: var(--serif); font-size: 92px; color: var(--gold); opacity: .35; line-height: 1;
}
.about-aside blockquote { margin: 18px 0 16px; font-family: var(--serif); font-size: 25px; line-height: 1.4; color: #fff; }
.about-sign { color: var(--gold-soft); font-weight: 600; margin: 0; }

/* ───────────── Karty usług ───────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border-top: 3px solid var(--gold);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; }

/* ───────────── Kroki współpracy ───────────── */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; padding-top: 8px; }
.step-no {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft);
  font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; }
.note {
  margin: 44px auto 0; max-width: 76ch; text-align: center;
  font-size: 14.5px; color: var(--ink-soft);
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 26px;
}

/* ───────────── Kontakt ───────────── */
.contact-grid { gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.contact-list a, .contact-list span { color: var(--ink); }
.contact-list a:hover { color: var(--gold); }
.map-link { font-weight: 600; }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--cream);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.18); background: #fff;
}
.field textarea { resize: vertical; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin: 4px 0 18px; line-height: 1.55; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.form-hint { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* komunikat formularza (wstrzykiwany przez JS) */
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.form-msg.success { background: #e8f3ec; color: #246b43; }
.form-msg.error { background: #fbeaea; color: #b3261e; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ───────────── Stopka ───────────── */
.site-footer { background: var(--navy-deep); color: rgba(247,244,238,.7); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-name { font-family: var(--serif); font-size: 20px; color: #fff; margin: 14px 0 6px; }
.footer-addr { font-size: 14px; margin: 0; line-height: 1.6; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(247,244,238,.7); font-size: 15px; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 12.5px; }
.footer-bottom p { margin: 0; color: rgba(247,244,238,.5); }
.footer-note { max-width: 52ch; }

/* ───────────── Reveal (scroll) ───────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────────── Responsywność ───────────── */
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-130%); transition: transform .3s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.06); }
  .main-nav .nav-phone { margin: 12px 24px 4px; text-align: center; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .contact-list li { grid-template-columns: 110px 1fr; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
