/* Wojciech Kościuk — Kancelaria Radcy Prawnego */

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

:root {
  --primary: #024063;
  --primary-light: #1691b2;
  --primary-soft: #e8f4f8;
  --primary-bg: #f0f7fa;
  --text: #1c1c1e;
  --text-soft: #5c5c5e;
  --white: #ffffff;
  --border: #d4dde2;
  --gold: #b8945f;
  --gold-soft: rgba(184, 148, 95, 0.15);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: 'Raleway', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Accessibility: focus states */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible,
.nav a:focus-visible,
.contact-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid var(--gold);
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Selection color */
::selection { background: var(--gold); color: var(--white); }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--primary);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(2, 64, 99, 0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 120px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 120px; width: auto; display: block; }
.brand { transition: opacity 0.2s; }
.brand:hover { opacity: 0.85; }
.nav { display: flex; gap: 2rem; flex-wrap: nowrap; align-items: center; }
.nav a {
  font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.8);
  text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--white); }
.btn {
  display: inline-block; padding: 0.7rem 1.5rem;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  letter-spacing: 0.03em; border-radius: 6px;
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-nav {
  background: var(--primary-light); color: var(--white);
  border: 2px solid var(--primary-light);
}
.btn-nav:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-accent {
  background: var(--primary-light); color: var(--white);
  border: 2px solid var(--primary-light);
  box-shadow: 0 4px 14px rgba(22, 145, 178, 0.25);
}
.btn-accent:hover {
  background: var(--primary); border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 64, 99, 0.35);
}
.btn-outline-light {
  color: var(--white); border: 2px solid rgba(255,255,255,0.4); border-radius: 6px;
  padding: 0.7rem 1.5rem;
}
.btn-outline-light:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 16px; position: relative; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); position: absolute; left: 0; transition: 0.3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle.open span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 7px; transform: rotate(-45deg); }

/* HERO */
.hero { position: relative; padding: 0; overflow: hidden; background: var(--primary); min-height: 100vh; display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--primary) 50%, #013350 100%);
}
.hero-bg::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 50%; height: 60%;
  background: var(--primary-light); opacity: 0.06;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 8rem 0 6rem; }
.hero-content { max-width: 850px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 14px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.25;
  color: var(--white); margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-lead { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 1rem; max-width: 850px; }
.hero-tagline {
  font-size: 16px; color: rgba(255,255,255,0.45); font-style: italic;
  margin-bottom: 2.5rem; max-width: 850px;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; justify-content: center; }
.hero-meta { display: flex; gap: 1.5rem; align-items: center; justify-content: center; font-style: normal; }
.hero-meta a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 16px; transition: color 0.2s; }
.hero-meta a:hover { color: var(--white); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }

/* LABELS */
.label-line {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 14px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary-light); margin-bottom: 1rem;
}
.label-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

/* SECTION SEPARATOR */
.section-sep {
  display: flex; justify-content: center; align-items: center; padding: 0;
  background: var(--white);
}
.section-sep::before {
  content: ''; display: block; width: 60px; height: 2px;
  background: var(--gold); opacity: 0.5;
}

/* SECTIONS */
.section { padding: 5rem 0; scroll-margin-top: 130px; }
.section-dark { background: var(--primary); color: var(--white); }
.section-light { background: var(--primary-bg); }
.sec-head { margin: 0 0 2rem; }
.sec-head-center { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }

/* SPLIT (ABOUT) */
.split { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.split-media { position: relative; }
.split-media img {
  width: 100%; display: block; border-radius: 12px; height: auto;
  box-shadow: 0 16px 40px rgba(2, 64, 99, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.split-media:hover img {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(2, 64, 99, 0.24);
}
.split-text h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.quote-box {
  position: relative;
  background: var(--primary-bg); padding: 1.5rem 1.5rem 1.5rem 2.5rem; margin: 1.5rem 0;
  border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-soft); font-size: 16px;
}
.quote-mark {
  position: absolute; left: 0.75rem; top: 0.25rem;
  font-family: var(--serif); font-size: 48px; line-height: 1;
  color: var(--gold); opacity: 0.4; font-style: normal;
}
.split-text p { margin-bottom: 1rem; color: var(--text-soft); font-size: 16px; line-height: 1.8; }

/* SPEC CARDS (used for both Specjalizacje and FAQ) */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.spec-card {
  background: var(--white); border: 1px solid rgba(2, 64, 99, 0.16);
  padding: 1.75rem; border-radius: 18px;
  box-shadow: 0 12px 26px rgba(2, 64, 99, 0.11);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  border-top: 3px solid var(--gold);
}
.spec-card:hover {
  border-color: var(--primary-light);
  border-top-color: var(--gold);
  box-shadow: 0 20px 40px rgba(2, 64, 99, 0.18);
  transform: translateY(-4px);
}
.spec-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 1rem; color: var(--primary); }
.spec-card ul { list-style: none; padding: 0; }
.spec-card li {
  padding: 0.35rem 0 0.35rem 1.25rem; font-size: 14px; color: var(--primary);
  margin-bottom: 0.1rem; position: relative;
}
.spec-card li::before {
  content: ''; position: absolute; left: 0; top: 0.75rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.spec-card p { font-size: 16px; color: var(--text-soft); line-height: 1.7; }

/* FAQ grid - 2 columns */
.faq-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.faq-grid .spec-card h3 { font-size: 20px; }

/* CONTACT */
.contact-full { text-align: center; padding: 4rem 0; }
.contact-full h2 { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 34px); font-weight: 600; color: var(--white); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.contact-sub { font-size: 16px; color: var(--gold); margin-bottom: 2.5rem; }
.contact-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; font-style: normal; }
.contact-link {
  font-size: 16px; color: var(--white); text-decoration: none; font-weight: 600;
  padding-bottom: 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s;
}
.contact-link:hover { border-color: var(--gold); color: var(--gold); }

/* FADE-IN ANIMATION */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* FOOTER */
.footer { background: var(--primary); border-top: 1px solid rgba(255,255,255,0.08); padding: 2rem 0; }
.footer-inner-col { text-align: center; }
.footer-brand {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: rgba(255,255,255,0.6); margin-bottom: 0.75rem;
}
.footer-bar { display: flex; justify-content: center; align-items: center; gap: 2rem; font-size: 14px; color: rgba(255,255,255,0.35); }
.footer-link { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-link:hover { color: var(--white); }

/* FLOATING BUTTON */
.floating-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  background: var(--primary-light); color: var(--white);
  padding: 0.75rem 1.5rem; border-radius: 50px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 20px rgba(22, 145, 178, 0.35);
  transition: all 0.3s ease;
  opacity: 0; transform: translateY(20px); pointer-events: none;
}
.floating-btn.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.floating-btn:hover {
  background: var(--primary);
  box-shadow: 0 6px 24px rgba(2, 64, 99, 0.4);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav {
    position: absolute; top: 120px; left: 0; right: 0;
    background: var(--primary); border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column; padding: 1.5rem; gap: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn-nav { display: none; }
}

@media (max-width: 768px) {
  .header-inner { height: 80px; }
  .brand-logo { height: 72px; }
  .nav { top: 80px; }
  .section { padding: 3rem 0; scroll-margin-top: 90px; }
  .hero h1 { font-size: 28px; }
  .hero-inner { padding: 6rem 0 4rem; }
  .hero-meta { flex-direction: column; align-items: center; gap: 0.5rem; }
  .hero-meta .dot { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 320px; margin: 0 auto; }
  .spec-grid, .faq-grid { grid-template-columns: 1fr; }
  .contact-full h2 { font-size: 26px; }
  .contact-row { gap: 1rem; flex-direction: column; }
  .footer-bar { flex-direction: column; text-align: center; gap: 0.5rem; }
  .floating-btn { bottom: 1rem; right: 1rem; font-size: 12px; padding: 0.65rem 1.2rem; }
}

/* HEADER ACTIONS WRAPPER */
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* LANGUAGE SWITCHER */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.55rem 0.85rem;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 6px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.18); border-color: var(--gold); color: var(--gold); }
.lang-current { line-height: 1; }
.lang-current-flag {
  display: block; width: 24px; height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  object-fit: cover;
}
.lang-arrow {
  font-size: 12px; line-height: 1; transition: transform 0.2s;
  display: inline-block;
}
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  list-style: none; padding: 0.4rem 0; margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(2, 64, 99, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 110;
}
.lang-switcher.open .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-menu li { padding: 0; margin: 0; }
.lang-menu button {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%; padding: 0.6rem 1rem;
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 14px; text-align: left;
  color: var(--text); transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover,
.lang-menu button[aria-current="true"] {
  background: var(--primary-bg);
  color: var(--primary);
}
.lang-menu button[aria-current="true"] { font-weight: 700; }
.lang-menu .lang-flag {
  width: 24px; height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
  object-fit: cover;
  flex-shrink: 0;
}
.lang-menu .lang-label { color: inherit; flex: 1; }
.lang-menu .lang-code {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold); margin-left: auto;
}

/* CONTACT H2 — preserve translated \n */
.contact-h2 { white-space: pre-line; }

/* PRIVACY PAGE */
.privacy-section { padding-top: calc(120px + 4rem); padding-bottom: 5rem; background: var(--white); }
.privacy-container { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.privacy-back {
  display: inline-block; margin-bottom: 2rem;
  color: var(--primary-light); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  transition: color 0.2s, transform 0.2s;
}
.privacy-back:hover { color: var(--primary); transform: translateX(-3px); }
.privacy-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px); font-weight: 600;
  color: var(--primary); margin-bottom: 1rem;
  letter-spacing: -0.01em;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}
.privacy-intro {
  font-size: 16px; color: var(--text-soft); line-height: 1.8;
  margin-bottom: 2.5rem;
}
.privacy-intro p {
  margin: 0 0 1rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.privacy-intro p:last-child { margin-bottom: 0; }
.privacy-intro ul {
  margin: 0.5rem 0 0; padding-left: 1.3rem;
  list-style: disc;
}
.privacy-intro li { margin-bottom: 0.45rem; line-height: 1.7; }
.privacy-block { margin-bottom: 2.25rem; }
.privacy-block h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 24px); font-weight: 600;
  color: var(--primary); margin-bottom: 0.75rem;
  letter-spacing: -0.005em;
}
.privacy-block p {
  font-size: 16px; color: var(--text-soft); line-height: 1.8;
  margin: 0 0 0.85rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.privacy-block p:last-child { margin-bottom: 0; }
.privacy-block ul {
  margin: 0.25rem 0 0.85rem; padding-left: 1.3rem;
  list-style: disc;
}
.privacy-block li {
  font-size: 16px; color: var(--text-soft); line-height: 1.75;
  margin-bottom: 0.5rem;
}
.privacy-block li:last-child { margin-bottom: 0; }

/* RESPONSIVE — language switcher tweaks */
@media (max-width: 768px) {
  .header-actions { gap: 0.5rem; }
  .lang-btn { padding: 0.45rem 0.7rem; font-size: 13px; }
  .lang-menu { right: 0; min-width: 160px; }
  .privacy-section { padding-top: calc(80px + 2rem); padding-bottom: 3rem; }
  .privacy-title { font-size: 28px; }
}

/* PRINT */
@media print {
  .header, .nav-toggle, .floating-btn, .hero-actions, .section-sep, .hero-bg { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; background: none; color: var(--text); }
  .hero h1, .hero-lead, .hero-tagline, .hero-badge, .hero-meta a { color: var(--text) !important; }
  .section-dark { background: none !important; color: var(--text) !important; }
  .section-dark h2, .contact-link { color: var(--text) !important; }
  .spec-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  a { color: var(--text) !important; text-decoration: underline; }
  body { font-size: 12pt; line-height: 1.5; }
}
