/* ============================================================
   CAUSA NOSTRA — wersja "wywiadowcza"
   Granat dominujący + jeden kremowy oddech + złoto akcent
   ============================================================ */

:root {
  --navy: #0a1430;
  --navy-deep: #060d22;
  --navy-soft: #142046;
  --navy-line: rgba(201, 169, 97, 0.16);
  --gold: #c9a961;
  --gold-dim: #b89a56;
  --gold-bright: #d9b975;
  --cream: #f4ede0;
  --cream-light: #faf6ee;
  --paper: #ffffff;
  --ink: #0a1430;
  --ink-soft: #3a4255;
  --muted-light: rgba(244, 237, 224, 0.62);
  --muted-light-soft: rgba(244, 237, 224, 0.78);
  --rule-light: rgba(244, 237, 224, 0.16);

  --display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --maxw: 1180px;
  --maxw-narrow: 820px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 17px; }
@media (max-width: 640px) { html { font-size: 16px; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--cream-light);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--navy); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: var(--maxw-narrow); }

/* ------- header ------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 48, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-light);
  transition: background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(6, 13, 34, 0.94);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.05rem;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--cream-light);
  flex-shrink: 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  color: var(--cream-light);
}

.brand-logo text {
  fill: currentColor;
}

@media (max-width: 720px) {
  .brand-logo { height: 48px; }
}

@media (max-width: 480px) {
  .brand-logo { height: 40px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light-soft);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover { color: var(--gold); }

.nav-cta {
  color: var(--navy) !important;
  background: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 1px;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--gold-bright); color: var(--navy-deep) !important; }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ------- hero ------- */

.hero {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201, 169, 97, 0.08), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: clamp(5rem, 14vw, 11rem) 0 clamp(4rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}

/* faint grid texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  opacity: 0.5;
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
}

.eyebrow-light { color: var(--gold); }

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8.5vw, 6.8rem);
  line-height: 1;
  color: var(--cream-light);
  letter-spacing: -0.015em;
  margin-bottom: 2.4rem;
}
.hero-title span { display: block; }
.hero-title .accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.3rem, 14vw, 3.5rem); }
}

.hero-lede {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--muted-light-soft);
  max-width: 30em;
  margin-bottom: 2.8rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--cream-light);
  border-color: rgba(201, 169, 97, 0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.06);
}

.hero-rule {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, transparent, var(--gold));
  opacity: 0.5;
  transform: translateX(-50%);
}

/* ------- sections ------- */

.section { padding: var(--section-y) 0; }

.section-cream {
  background: var(--cream);
  color: var(--ink);
}

.section-dark {
  background: var(--navy);
  color: var(--cream-light);
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section-head h2,
.section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream-light);
}

.section-cream h2 { color: var(--navy); }

.section-head .eyebrow { margin-bottom: 1.2rem; }

.h-light { color: var(--cream-light) !important; }
.accent-gold { font-style: italic; color: var(--gold); font-weight: 500; }

/* ------- MANDAT (narrow editorial) ------- */

#mandat h2 { margin-bottom: 2.2rem; max-width: 18em; }
.mandat-lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted-light-soft);
  max-width: 38em;
  margin-bottom: 1.4rem;
}
.section-cream .mandat-lede { color: var(--ink-soft); }

/* ------- OPERACJE ------- */

.ops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 880px) { .ops { grid-template-columns: 1fr; gap: 2.2rem; } }

.op {
  border-top: 1px solid var(--navy-line);
  padding-top: 1.6rem;
  position: relative;
}

.op-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1.2rem;
}

.op h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--cream-light);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.op p {
  color: var(--muted-light-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* ------- INSTRUMENTARIUM ------- */

.section-instrumentarium {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 169, 97, 0.06), transparent 60%),
    var(--navy-deep);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.section-instrumentarium h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 2rem;
  max-width: 20em;
}

/* ------- ZASIĘG ------- */

.section-zasieg {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201, 169, 97, 0.05), transparent 60%),
    var(--navy);
}

.section-zasieg h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 2rem;
  max-width: 20em;
}

.reach-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule-light);
}

@media (max-width: 720px) {
  .reach-stats { grid-template-columns: 1fr; gap: 1.4rem; }
}

.reach-stats dt {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream-light);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.reach-stats dd {
  font-size: 0.86rem;
  color: var(--muted-light-soft);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ------- ZASADY ------- */

.rules {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

@media (max-width: 760px) {
  .rules { grid-template-columns: 1fr; gap: 2.5rem; }
}

.rules li {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

.rule-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
  min-width: 2rem;
}

.rules h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--cream-light);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.rules p {
  color: var(--muted-light-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ------- ZAŁOŻYCIEL ------- */

.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; gap: 1.6rem; }
}

.founder-mono {
  width: 200px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.18), transparent 65%),
    linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
  color: var(--gold);
  font-family: var(--display);
  font-weight: 500;
  font-size: 4.5rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .founder-mono { width: 140px; }
}

.founder h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.founder-role {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.6rem;
}

.founder-text p:not(.founder-role):not(.founder-note) {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.founder-note {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(10, 20, 48, 0.12);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ------- KONTAKT ------- */

.section-kontakt {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(201, 169, 97, 0.07), transparent 55%),
    var(--navy-deep);
}

#kontakt h2 {
  margin-bottom: 1.6rem;
  max-width: 22em;
}

/* motto Augustyna — dewiza grupy LEX NOSTRA */
.h-motto {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: none;
  margin: 1.6rem auto 1rem;
}
.h-motto .accent-gold {
  display: block;
  margin-top: 0.2em;
}
.motto-attrib {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted-light-soft);
  margin: 0 auto 3.2rem;
}

.kontakt-lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted-light-soft);
  margin-bottom: 3rem;
  max-width: 38em;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-light);
}

@media (max-width: 600px) {
  .kontakt-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

.kontakt-grid dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.kontakt-grid dd {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--cream-light);
  font-weight: 500;
  line-height: 1.4;
}

.kontakt-grid dd a {
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  transition: border-color 0.2s var(--ease);
}
.kontakt-grid dd a:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ------- footer ------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--muted-light);
  padding: 2.4rem 0;
  border-top: 1px solid var(--rule-light);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--cream-light);
}

.footer-tag {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold);
  margin-top: 0.2rem;
}

.footer-motto {
  font-family: var(--display);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted-light-soft);
  margin-top: 1rem;
  max-width: 18em;
}
.footer-motto-attrib {
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

.footer-meta {
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .footer-meta { text-align: left; }
}

/* ------- reduced motion ------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Footer address & contact note (added 2026-06-11) ===== */
.footer-address {
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 280px;
}

.footer-address p {
  margin: 0 0 0.5rem 0;
}

.footer-address .footer-addr-label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.footer-address a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(196,164,108,0.3);
  transition: border-color 0.2s ease;
}

.footer-address a:hover {
  border-bottom-color: var(--gold);
}

.kontakt-grid .addr-note {
  display: inline-block;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.3rem;
  font-style: italic;
}

@media (max-width: 720px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-address {
    max-width: 100%;
  }
  .footer-meta {
    text-align: left;
  }
}
