/*
Theme Name: Grzegorz Wiśniewski — Usługi Prawnicze
Theme URI: https://example.com/
Author: OpenAI for Grzegorz Wiśniewski
Description: Lekki, elegancki motyw one-page dla usług prawniczych, oparty na identyfikacji granatowo-złotej. Zawiera formularz wstępnej analizy sprawy, sekcję usług, proces współpracy i aktualności.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: gw-law
*/

:root {
  --gw-navy: #06295d;
  --gw-navy-deep: #031a3c;
  --gw-navy-soft: #0d3973;
  --gw-gold: #b7995c;
  --gw-gold-light: #d7c08b;
  --gw-ivory: #f7f4ed;
  --gw-paper: #fffdf8;
  --gw-white: #ffffff;
  --gw-ink: #18212c;
  --gw-muted: #657080;
  --gw-line: rgba(6, 41, 93, 0.14);
  --gw-shadow: 0 24px 70px rgba(3, 26, 60, 0.12);
  --gw-radius: 22px;
  --gw-serif: Georgia, "Times New Roman", serif;
  --gw-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gw-ink);
  background: var(--gw-paper);
  font-family: var(--gw-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { background: var(--gw-gold-light); color: var(--gw-navy-deep); }

.gw-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.gw-section { padding: 104px 0; position: relative; }
.gw-section--soft { background: var(--gw-ivory); }
.gw-section--navy { background: var(--gw-navy-deep); color: var(--gw-white); }
.gw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gw-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.gw-eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.gw-title {
  max-width: 790px;
  margin: 0;
  color: var(--gw-navy-deep);
  font-family: var(--gw-serif);
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.gw-section--navy .gw-title { color: var(--gw-white); }
.gw-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--gw-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.gw-section--navy .gw-lead { color: rgba(255,255,255,.72); }

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--gw-line);
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 12px 35px rgba(3,26,60,.07);
}
.gw-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gw-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.gw-brand img { width: 60px; height: 44px; object-fit: contain; }
.gw-brand-text { display: grid; line-height: 1.05; }
.gw-brand-name { color: var(--gw-navy); font-family: var(--gw-serif); font-size: 1.2rem; font-weight: 700; }
.gw-brand-role { margin-top: 5px; color: var(--gw-muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gw-nav { display: flex; align-items: center; gap: 25px; }
.gw-nav-list { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.gw-nav a { position: relative; color: var(--gw-navy-deep); font-size: .88rem; font-weight: 700; text-decoration: none; }
.gw-nav a:not(.gw-button)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--gw-gold); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.gw-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gw-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--gw-line); border-radius: 50%; background: var(--gw-white); color: var(--gw-navy); cursor: pointer; }
.gw-menu-toggle span, .gw-menu-toggle::before, .gw-menu-toggle::after { content: ""; display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease; }

.gw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--gw-navy);
  border-radius: 999px;
  background: var(--gw-navy);
  color: var(--gw-white) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gw-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(6,41,93,.18); background: var(--gw-navy-soft); }
.gw-button--gold { border-color: var(--gw-gold); background: var(--gw-gold); color: var(--gw-navy-deep) !important; }
.gw-button--ghost { border-color: rgba(6,41,93,.25); background: transparent; color: var(--gw-navy) !important; }
.gw-button svg { width: 18px; height: 18px; }

/* Hero */
.gw-hero {
  min-height: 800px;
  padding: 176px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 38%, rgba(183,153,92,.18), transparent 0 24%),
    linear-gradient(135deg, var(--gw-paper) 0%, #f6f1e6 100%);
}
.gw-hero::before {
  content: "";
  position: absolute;
  top: 88px;
  right: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(183,153,92,.25);
  border-radius: 50%;
}
.gw-hero::after {
  content: "";
  position: absolute;
  top: 143px;
  right: -125px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(6,41,93,.12);
  border-radius: 50%;
}
.gw-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.28fr .72fr; gap: 70px; align-items: center; }
.gw-hero h1 { max-width: 800px; margin: 0; color: var(--gw-navy-deep); font-family: var(--gw-serif); font-size: clamp(3.2rem, 7.2vw, 6.5rem); font-weight: 500; line-height: .93; letter-spacing: -.055em; }
.gw-hero h1 span { display: block; color: var(--gw-navy); }
.gw-hero-copy { max-width: 690px; margin: 30px 0 0; color: #596473; font-size: 1.15rem; }
.gw-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.gw-hero-meta { display: flex; flex-wrap: wrap; gap: 11px 26px; margin-top: 38px; color: var(--gw-navy); font-size: .83rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.gw-hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.gw-hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gw-gold); }
.gw-hero-card {
  position: relative;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 32px;
  background: linear-gradient(155deg, var(--gw-navy) 0%, var(--gw-navy-deep) 100%);
  color: var(--gw-white);
  box-shadow: var(--gw-shadow);
  overflow: hidden;
}
.gw-hero-card::after { content: "GW"; position: absolute; right: -20px; bottom: -58px; color: rgba(255,255,255,.035); font-family: var(--gw-serif); font-size: 12rem; line-height: 1; }
.gw-hero-card img { width: 110px; filter: brightness(0) invert(1); opacity: .95; }
.gw-hero-card h2 { position: relative; z-index: 1; margin: 45px 0 15px; font-family: var(--gw-serif); font-size: 2.1rem; font-weight: 500; line-height: 1.05; }
.gw-hero-card p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.7); }
.gw-hero-card .gw-mini-link { position: relative; z-index: 1; display: inline-flex; margin-top: 28px; color: var(--gw-gold-light); font-weight: 800; text-decoration: none; }

/* Trust strip */
.gw-trust { padding: 22px 0; border-top: 1px solid var(--gw-line); border-bottom: 1px solid var(--gw-line); background: var(--gw-white); }
.gw-trust-inner { display: flex; justify-content: center; gap: 18px 50px; flex-wrap: wrap; color: var(--gw-navy); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.gw-trust-inner span { display: inline-flex; align-items: center; gap: 12px; }
.gw-trust-inner span::before { content: ""; width: 24px; height: 1px; background: var(--gw-gold); }

/* Services */
.gw-services-head { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 52px; }
.gw-services-head .gw-lead { max-width: 470px; }
.gw-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gw-service-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-radius);
  background: var(--gw-white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gw-service-card:hover { transform: translateY(-6px); border-color: rgba(183,153,92,.65); box-shadow: 0 24px 50px rgba(3,26,60,.09); }
.gw-service-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--gw-ivory); color: var(--gw-navy); }
.gw-service-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gw-service-card h3 { margin: 30px 0 12px; color: var(--gw-navy-deep); font-family: var(--gw-serif); font-size: 1.48rem; font-weight: 600; line-height: 1.15; }
.gw-service-card p { margin: 0; color: var(--gw-muted); font-size: .94rem; }

/* About */
.gw-about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: center; }
.gw-about-mark { position: relative; min-height: 530px; display: grid; place-items: center; border-radius: 36px; background: var(--gw-navy-deep); overflow: hidden; }
.gw-about-mark::before, .gw-about-mark::after { content: ""; position: absolute; border: 1px solid rgba(215,192,139,.25); border-radius: 50%; }
.gw-about-mark::before { width: 430px; height: 430px; top: -100px; left: -110px; }
.gw-about-mark::after { width: 330px; height: 330px; right: -140px; bottom: -80px; }
.gw-about-mark img { position: relative; z-index: 1; width: 230px; filter: brightness(0) invert(1); }
.gw-about-content h2 { margin-bottom: 25px; }
.gw-about-role { margin: 0 0 25px; color: var(--gw-gold); font-size: .85rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.gw-about-content p { color: var(--gw-muted); font-size: 1.03rem; }
.gw-about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 32px; }
.gw-about-value { padding: 18px 0; border-top: 1px solid var(--gw-line); color: var(--gw-navy-deep); font-weight: 800; }
.gw-about-value small { display: block; margin-top: 5px; color: var(--gw-muted); font-weight: 500; }

/* Process */
.gw-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 55px; }
.gw-step { position: relative; padding: 33px 30px; border-top: 1px solid rgba(255,255,255,.2); }
.gw-step-number { color: var(--gw-gold-light); font-family: var(--gw-serif); font-size: 2.5rem; }
.gw-step h3 { margin: 25px 0 12px; font-family: var(--gw-serif); font-size: 1.55rem; font-weight: 500; }
.gw-step p { margin: 0; color: rgba(255,255,255,.67); }
.gw-process-note { margin-top: 50px; padding: 22px 28px; border: 1px solid rgba(215,192,139,.33); border-radius: 16px; color: rgba(255,255,255,.78); }
.gw-process-note strong { color: var(--gw-gold-light); }

/* Articles */
.gw-articles-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.gw-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.gw-article { display: flex; flex-direction: column; min-height: 330px; padding: 28px; border: 1px solid var(--gw-line); border-radius: var(--gw-radius); background: var(--gw-white); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.gw-article:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(3,26,60,.08); }
.gw-article-meta { color: var(--gw-gold); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.gw-article h3 { margin: 30px 0 15px; color: var(--gw-navy-deep); font-family: var(--gw-serif); font-size: 1.5rem; line-height: 1.18; }
.gw-article p { margin: 0; color: var(--gw-muted); font-size: .93rem; }
.gw-article-more { margin-top: auto; padding-top: 25px; color: var(--gw-navy); font-weight: 800; }

/* Contact */
.gw-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.gw-contact-copy { position: sticky; top: 130px; }
.gw-contact-copy .gw-title { color: var(--gw-white); }
.gw-contact-points { display: grid; gap: 18px; margin-top: 36px; }
.gw-contact-point { display: flex; gap: 15px; color: rgba(255,255,255,.76); }
.gw-contact-point::before { content: ""; flex: 0 0 9px; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: var(--gw-gold); }
.gw-contact-direct { margin-top: 38px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.16); }
.gw-contact-direct a { display: block; width: fit-content; color: var(--gw-white); font-family: var(--gw-serif); font-size: 1.32rem; text-decoration: none; }
.gw-form-card { padding: 38px; border-radius: 30px; background: var(--gw-white); color: var(--gw-ink); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.gw-form-card h3 { margin: 0 0 8px; color: var(--gw-navy-deep); font-family: var(--gw-serif); font-size: 2rem; }
.gw-form-card > p { margin: 0 0 28px; color: var(--gw-muted); }
.gw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gw-field { margin-bottom: 17px; }
.gw-field label { display: block; margin-bottom: 7px; color: var(--gw-navy-deep); font-size: .84rem; font-weight: 800; }
.gw-field input, .gw-field textarea {
  width: 100%;
  border: 1px solid rgba(6,41,93,.18);
  border-radius: 13px;
  background: #fbfaf7;
  color: var(--gw-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gw-field input { height: 54px; padding: 0 16px; }
.gw-field textarea { min-height: 155px; padding: 14px 16px; resize: vertical; }
.gw-field input:focus, .gw-field textarea:focus { border-color: var(--gw-gold); box-shadow: 0 0 0 4px rgba(183,153,92,.13); }
.gw-field-hint { display: block; margin-top: 7px; color: #7c8592; font-size: .76rem; }
.gw-consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 7px 0 20px; color: #626d7c; font-size: .78rem; line-height: 1.5; }
.gw-consent input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--gw-navy); }
.gw-consent a { color: var(--gw-navy); font-weight: 800; }
.gw-form-card .gw-button { width: 100%; border: 0; cursor: pointer; }
.gw-form-note { margin: 15px 0 0 !important; color: #7b8591 !important; font-size: .76rem; text-align: center; }
.gw-form-status { margin-bottom: 20px; padding: 12px 15px; border-radius: 10px; font-size: .9rem; }
.gw-form-status--success { background: #eaf7ed; color: #245d31; }
.gw-form-status--error { background: #fff0ef; color: #8d2d25; }
.gw-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.gw-privacy-details { margin-top: 22px; border-top: 1px solid var(--gw-line); padding-top: 18px; }
.gw-privacy-details summary { color: var(--gw-navy); font-weight: 800; cursor: pointer; }
.gw-privacy-details div { margin-top: 14px; color: #66717f; font-size: .78rem; line-height: 1.65; }

/* Footer */
.site-footer { padding: 40px 0 28px; background: #02142f; color: rgba(255,255,255,.65); }
.gw-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.gw-footer-brand { display: flex; align-items: center; gap: 15px; color: var(--gw-white); }
.gw-footer-brand img { width: 67px; filter: brightness(0) invert(1); }
.gw-footer-brand strong { display: block; font-family: var(--gw-serif); font-size: 1.3rem; }
.gw-footer-brand span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.gw-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.gw-footer-links a { color: rgba(255,255,255,.72); font-size: .84rem; text-decoration: none; }
.gw-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: .76rem; }

/* Posts */
.gw-content-page { padding: 150px 0 90px; min-height: 70vh; }
.gw-content-page article { max-width: 820px; margin: 0 auto; }
.gw-content-page h1 { color: var(--gw-navy-deep); font-family: var(--gw-serif); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; }
.gw-entry-content { font-size: 1.05rem; }
.gw-entry-content h2, .gw-entry-content h3 { color: var(--gw-navy-deep); font-family: var(--gw-serif); }

/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto !important; background: var(--gw-white); color: var(--gw-navy); }

@media (max-width: 1024px) {
  .gw-nav { position: fixed; inset: 82px 20px auto; display: none; padding: 22px; border: 1px solid var(--gw-line); border-radius: 18px; background: var(--gw-white); box-shadow: var(--gw-shadow); flex-direction: column; align-items: stretch; }
  .gw-nav.is-open { display: flex; }
  .gw-nav-list { width: 100%; flex-direction: column; align-items: stretch; }
  .gw-menu-toggle { display: block; }
  .gw-hero-grid, .gw-about-grid, .gw-contact-grid { grid-template-columns: 1fr; }
  .gw-hero { min-height: auto; }
  .gw-hero-card { max-width: 620px; }
  .gw-services-grid, .gw-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-about-mark { min-height: 380px; }
  .gw-contact-copy { position: static; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .gw-container { width: min(100% - 28px, 1180px); }
  .gw-section { padding: 78px 0; }
  .gw-header-inner { min-height: 72px; }
  .gw-brand img { width: 51px; }
  .gw-brand-name { font-size: 1.03rem; }
  .gw-brand-role { font-size: .62rem; }
  .gw-nav { inset: 72px 14px auto; }
  .gw-hero { padding: 142px 0 70px; }
  .gw-hero-grid { gap: 45px; }
  .gw-hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .gw-hero-actions .gw-button { width: 100%; }
  .gw-hero-card { padding: 29px; }
  .gw-services-head, .gw-articles-head { display: block; }
  .gw-services-head .gw-lead { margin-top: 22px; }
  .gw-services-grid, .gw-articles-grid, .gw-process-grid { grid-template-columns: 1fr; }
  .gw-service-card { min-height: auto; }
  .gw-about-grid { gap: 45px; }
  .gw-about-mark { min-height: 320px; }
  .gw-about-mark img { width: 180px; }
  .gw-about-values, .gw-form-row { grid-template-columns: 1fr; }
  .gw-form-card { padding: 25px 20px; border-radius: 22px; }
  .gw-footer-top, .gw-footer-bottom { align-items: flex-start; flex-direction: column; }
  .gw-footer-links { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
