/* =========================================================
   Kancelaria Adwokacka adwokat Marta Łochyńska
   ========================================================= */

:root {
  --navy:        #12263f;
  --navy-deep:   #0c1b2e;
  --navy-soft:   #1d3a5c;
  --gold:        #c2a35a;
  --gold-dark:   #a8873c;
  --ink:         #17202b;
  --body:        #4d5866;
  --muted:       #7b8797;
  --line:        #e3e1dc;
  --cream:       #faf8f4;
  --paper:       #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(18, 38, 63, .06), 0 4px 14px rgba(18, 38, 63, .05);
  --shadow-md: 0 10px 34px rgba(18, 38, 63, .10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: rgba(194, 163, 90, .55); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

img, svg { max-width: 100%; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem;
  font-family: var(--sans);
  font-size: .93rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

.btn-sm { padding: .62rem 1.1rem; font-size: .82rem; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 98px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 64px; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.9rem; }
.site-nav a {
  position: relative;
  font-size: .93rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 1.8px; margin-inline: auto;
  background: var(--ink); transition: transform .25s, opacity .2s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: relative; }
.nav-toggle-bar::before { top: -6.5px; }
.nav-toggle-bar::after  { top: 4.7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-4.7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(194, 163, 90, .17), transparent 62%),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; max-width: 830px; }

.hero h1 { color: #fff; margin-bottom: 0; }
.hero-name { color: var(--gold); font-style: italic; font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.6rem; }

.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem;
  margin-top: 3.6rem; padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-facts li { display: flex; flex-direction: column; gap: .18rem; }
.hero-facts strong { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; color: #fff; }
.hero-facts span { font-size: .89rem; color: rgba(255, 255, 255, .62); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.8rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--cream); border-block: 1px solid var(--line); }

.section-eyebrow {
  margin-bottom: .9rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold-dark);
}

.section-head { max-width: 64ch; margin-bottom: clamp(2.4rem, 4.5vw, 3.4rem); }
.section-sub { color: var(--body); font-size: 1.04rem; }

.grid-2 {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 4.2rem);
  align-items: start;
}

/* ---------- Fact card ---------- */

.fact-card {
  padding: 2.1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.fact-card h3 { font-size: 1.05rem; letter-spacing: .01em; margin-bottom: 1.3rem; }

.fact-card dl { margin: 0; }
.fact-card dl > div { padding: .85rem 0; border-top: 1px solid var(--line); }
.fact-card dl > div:first-of-type { border-top: 0; padding-top: 0; }
.fact-card dt {
  margin-bottom: .18rem;
  font-size: .71rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.fact-card dd { margin: 0; font-size: .97rem; color: var(--ink); word-break: break-word; }

.fact-note {
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .87rem; color: var(--muted); line-height: 1.6;
}

/* ---------- Service list ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  column-gap: 3rem;
}

.service-list li {
  position: relative;
  padding: 1.05rem 0 1.05rem 1.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
}

.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.65rem;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Contact ---------- */

.section-dark {
  background:
    radial-gradient(900px 460px at 15% 0%, rgba(194, 163, 90, .14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, .8);
}
.section-dark h2 { color: #fff; }
.section-dark .section-eyebrow { color: var(--gold); }
.section-dark .section-sub { color: rgba(255, 255, 255, .72); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.4rem; }

.contact-card {
  display: block; padding: 2rem 1.8rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: background-color .25s, border-color .25s, transform .25s;
}
.contact-card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(194, 163, 90, .6);
  transform: translateY(-4px);
  color: inherit;
}

.contact-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1.15rem;
  background: rgba(194, 163, 90, .17); border-radius: var(--radius);
}
.contact-icon svg {
  width: 21px; height: 21px;
  fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.contact-card h3 {
  margin-bottom: .55em;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold);
}
.contact-value {
  margin-bottom: .5rem;
  font-family: var(--serif); font-size: 1.16rem; line-height: 1.4; color: #fff;
  word-break: break-word;
}
.contact-hint { font-size: .85rem; color: rgba(255, 255, 255, .55); }

.contact-foot {
  max-width: 68ch; margin-top: 2.6rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .93rem; color: rgba(255, 255, 255, .62);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .68); font-size: .93rem; }

.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.4rem;
  padding: clamp(2.8rem, 5vw, 4rem) 0 2.6rem;
}

.footer-brand img { display: block; width: auto; height: 62px; max-width: 100%; }
.footer-brand p { margin: 1.1rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .55); }

.footer-col h4 {
  margin-bottom: 1rem;
  font-family: var(--sans); font-size: .73rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold);
}
.footer-col li { margin-bottom: .55rem; word-break: break-word; }
.footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem; color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }

  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }

  .nav-cta { margin-top: 1.2rem; align-self: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { min-height: 78px; }
  .brand img { height: 52px; }
  .footer-brand img { height: 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .fact-card, .contact-card { padding: 1.6rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .contact-card:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .hero-actions, .nav-toggle { display: none; }
  body { color: #000; font-size: 12pt; }
  .hero, .section-dark, .site-footer { background: none !important; color: #000; }
  .hero h1, .hero-name, .section-dark h2, .contact-value, .footer-brand strong { color: #000 !important; }
  a { text-decoration: none; color: #000; }
}
