/* ============================================================
   Kancelaria Adwokacka – main.css
   ============================================================ */

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

:root {
  --gold: #a8885a;
  --gold-light: #c9a97a;
  --gold-pale: #f5ede0;
  --dark: #1a1612;
  --dark-mid: #2e2820;
  --charcoal: #3d3530;
  --mid: #7a6e65;
  --light-text: #b5a89a;
  --off-white: #faf8f5;
  --cream: #f2ece4;
  --border: rgba(168,136,90,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.75;
  font-size: 16px;
}

/* ── PRZYWRÓCENIE DOMYŚLNYCH STYLÓW WP ───────────────────── */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAV ──────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,22,18,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168,136,90,0.2);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo span {
  display: block;
  font-size: 0.7rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-cta {
  color: var(--gold-light) !important;
  border: 1px solid rgba(168,136,90,0.5);
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: #fff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 4rem 6rem 5rem;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  max-width: 420px;
  margin-bottom: 3rem;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img,
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.6) sepia(0.15);
}
.hero-img-placeholder { background: var(--dark-mid); }
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 40%);
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── SENTENCJA ────────────────────────────────────────────── */
.latin-banner {
  background: var(--gold);
  padding: 1.25rem 3rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.latin-banner small {
  display: block;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* ── SEKCJE – BASE ────────────────────────────────────────── */
section { padding: 6rem 0; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

/* ── PRZYCISKI ────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
  transition: background 0.25s;
}
.btn-primary:hover { background: var(--gold-light); color: #fff; }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.85rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
  transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── O MNIE ───────────────────────────────────────────────── */
#o-mnie { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(15%);
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream);
  border-radius: 2px;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--border);
  border-radius: 2px;
  z-index: -1;
}

.about-content p {
  color: var(--mid);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.stat-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-text);
  margin-top: 0.25rem;
}

/* ── USŁUGI ───────────────────────────────────────────────── */
#uslugi { background: var(--dark); }
#uslugi .section-title { color: #fff; }
#uslugi .section-label { color: var(--gold-light); }
#uslugi .section-label::before { background: var(--gold-light); }

.services-intro {
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  font-size: 0.95rem;
  margin-bottom: 4rem;
  line-height: 1.85;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168,136,90,0.12);
  padding: 2.5rem 2rem;
  cursor: default;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.service-card:hover { background: rgba(168,136,90,0.06); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(168,136,90,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}
.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.75rem;
}
.service-card .service-desc,
.service-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}

/* ── WARTOŚCI ─────────────────────────────────────────────── */
#wartosci { background: var(--cream); }

.values-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.values-intro {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.85;
  padding-top: 1rem;
}

.values-list { display: flex; flex-direction: column; }
.value-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.value-item:first-child { border-top: 1px solid var(--border); }

.value-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.value-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.value-desc,
.value-item p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.8;
}

/* ── CYTAT / CTA ──────────────────────────────────────────── */
#cytat {
  background: var(--dark-mid);
  padding: 5rem 0;
  text-align: center;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.45;
  quotes: none;
}
.quote-source {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

/* ── KONTAKT ──────────────────────────────────────────────── */
#kontakt { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 2rem;
  line-height: 1.85;
}
.contact-details { margin-top: 2rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item-text strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-text);
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.contact-item-text span,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--charcoal);
  text-decoration: none;
}
.contact-item-text a:hover { color: var(--gold); }

/* Formularz */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.5rem;
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid rgba(168,136,90,0.2);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-consent {
  font-size: 0.78rem;
  color: var(--light-text);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.form-consent a { color: var(--gold); }
.form-consent input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }

.form-success {
  background: #eaf5e8;
  border: 1px solid #b0dba9;
  color: #2e6b26;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-error {
  background: #fbeaea;
  border: 1px solid #f0b4b4;
  color: #8b2020;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── STOPKA ───────────────────────────────────────────────── */
#site-footer {
  background: var(--dark);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(168,136,90,0.15);
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}
.footer-logo span {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
}

/* ── BLOG / POSTY ─────────────────────────────────────────── */
.site-content {
  padding-top: 72px; /* wysokość nava */
  min-height: 60vh;
}
.entry-header, .entry-content { max-width: 720px; margin: 0 auto; }
.entry-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; }

/* ── RESPONSYWNOŚĆ ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { gap: 3rem; }
  .contact-grid { gap: 3rem; }
}

@media (max-width: 900px) {
  #site-nav { padding: 0 1.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(26,22,18,0.98);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(168,136,90,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; }
  .nav-cta { text-align: center; }

  #hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 45vh; order: -1; }
  .hero-right::before { background: linear-gradient(180deg, transparent 0%, var(--dark) 80%); }
  .hero-left { padding: 2rem 1.5rem 4rem; }
  .hero-scroll { left: 1.5rem; }

  .about-grid,
  .contact-grid,
  .values-header { grid-template-columns: 1fr; gap: 2rem; }

  .about-img-wrap { max-width: 320px; }

  .form-row { grid-template-columns: 1fr; }

  section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }

  #site-footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ── ANIMACJE FADEIN (obsługiwane przez JS) ───────────────── */
.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
