/* ===== BPS SHARED STYLES — Kirkland-inspired ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --navy:  #0B1D35;
  --navy2: #112240;
  --navy3: #1a3055;
  --gold:  #C9A96E;
  --gold2: #B8905A;
  --white: #ffffff;
  --off:   #f5f3ef;
  --gray:  #8a9ab0;
  --text:  #2c3e50;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', Arial, sans-serif;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.02em; line-height: 1.1;
}
.nav-logo-text .sub {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  color: rgba(255,255,255,0.85); letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }
.nav-contact {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  color: var(--gold) !important; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(201,169,110,0.4); padding: 8px 18px; border-radius: 2px;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-contact::after { display: none !important; }
.nav-contact:hover { background: rgba(201,169,110,0.1) !important; border-color: var(--gold) !important; }
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: 0.3s; }

/* ===== PAGE HEADER (subpages) ===== */
.page-header {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url('/../hero-image.jpg') center center / cover no-repeat;
  opacity: 0.08;
}
.page-header-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 400;
  color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.25); }
.page-header h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em; max-width: 760px;
}
.page-header h1 em { font-style: italic; color: var(--gold); }
.page-header-meta {
  margin-top: 20px; font-family: var(--sans); font-size: 0.8125rem;
  color: rgba(255,255,255,0.4); display: flex; gap: 20px; align-items: center;
}
.page-header-meta span { display: flex; align-items: center; gap: 6px; }

/* ===== SECTION UTILITIES ===== */
.section-label {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold2);
  margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold2); }
.section-label.light { color: rgba(201,169,110,0.7); }
.section-label.light::before { background: rgba(201,169,110,0.7); }

.btn-primary {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); background: var(--gold);
  padding: 14px 32px; border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-outline {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); border: 1px solid rgba(11,29,53,0.25);
  padding: 14px 32px; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost-gold {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s;
}
.btn-ghost-gold:hover { gap: 14px; }

/* ===== ARTICLE CONTENT ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  padding: 80px 0 120px;
  align-items: start;
}
.article-body h2 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 500;
  color: var(--navy); line-height: 1.2; letter-spacing: -0.02em;
  margin: 48px 0 20px; padding-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body p {
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 300;
  color: #445060; line-height: 1.85; margin-bottom: 20px;
}
.article-body strong { font-weight: 600; color: var(--navy); }
.article-body ul, .article-body ol {
  margin: 24px 0; padding-left: 0; list-style: none;
}
.article-body li {
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 300;
  color: #445060; line-height: 1.75; padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.05); position: relative;
}
.article-body li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 8px; height: 1px; background: var(--gold);
}
.article-body blockquote {
  border-left: 2px solid var(--gold); padding: 20px 28px;
  margin: 32px 0; background: rgba(201,169,110,0.04);
}
.article-body blockquote p {
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
  color: var(--navy); margin: 0; line-height: 1.6;
}
.article-callout {
  background: var(--navy); padding: 32px 36px; border-radius: 2px; margin: 40px 0;
}
.article-callout p {
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 300;
  color: rgba(255,255,255,0.75); line-height: 1.7; margin: 0;
}
.article-callout strong { color: var(--gold); font-weight: 600; }

/* ===== SIDEBAR ===== */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-cta {
  background: var(--navy); padding: 40px 36px; margin-bottom: 24px; position: relative;
}
.sidebar-cta::before {
  content: ''; position: absolute; top: 12px; left: 12px; right: -12px; bottom: -12px;
  border: 1px solid rgba(201,169,110,0.12); pointer-events: none;
}
.sidebar-cta h4 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--white); margin-bottom: 12px; line-height: 1.2;
}
.sidebar-cta p {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 300;
  color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 24px;
}
.sidebar-cta .btn-primary { width: 100%; justify-content: center; }
.sidebar-contact { margin-top: 16px; }
.sidebar-contact a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 400;
  color: var(--gold); margin-top: 12px; transition: gap 0.2s;
}
.sidebar-contact a:hover { gap: 14px; }
.sidebar-related { background: var(--off); padding: 36px; margin-top: 24px; }
.sidebar-related h4 {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #aab;
  margin-bottom: 20px;
}
.sidebar-related a {
  display: block; font-family: var(--serif); font-size: 1rem; font-weight: 400;
  color: var(--navy); padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: color 0.2s, padding-left 0.2s; line-height: 1.35;
}
.sidebar-related a:hover { color: var(--gold2); padding-left: 8px; }
.sidebar-related a:last-child { border-bottom: none; }

/* ===== ARTICLES LIST ===== */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 80px 0 120px;
}
.article-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.07);
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11,29,53,0.08);
  border-color: rgba(201,169,110,0.2);
}
.article-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  display: flex; align-items: center; justify-content: center;
}
.article-card-img span {
  font-family: var(--serif); font-size: 2rem; font-weight: 400;
  color: rgba(201,169,110,0.3); font-style: italic;
}
.article-card-body { padding: 32px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold2); margin-bottom: 14px;
}
.article-card h2, .article-card h3 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  color: var(--navy); line-height: 1.35; margin-bottom: 12px;
}
.article-card p {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 300;
  color: #6a7a8a; line-height: 1.7; flex: 1; margin-bottom: 24px;
}
.article-read {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s, gap 0.2s;
}
.article-card:hover .article-read { color: var(--gold2); gap: 14px; }

/* ===== FINANSOWANIE ===== */
.financing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(0,0,0,0.08); margin: 60px 0;
}
.financing-card {
  background: var(--white); padding: 48px 40px;
  transition: background 0.25s;
}
.financing-card:hover { background: var(--off); }
.financing-num {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 400;
  color: rgba(201,169,110,0.2); line-height: 1; margin-bottom: 20px;
}
.financing-card h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  color: var(--navy); margin-bottom: 14px;
}
.financing-card p {
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 300;
  color: #6a7a8a; line-height: 1.7;
}
.calculator-wrap {
  background: var(--off); padding: 60px 0;
}
.calculator-inner { max-width: 960px; margin: 0 auto; }
.calculator-inner iframe {
  width: 100%; height: 800px; border: none;
  border-radius: 2px; box-shadow: 0 20px 40px rgba(11,29,53,0.08);
}

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--navy); padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 600px; height: 600px;
  border-radius: 50%; border: 1px solid rgba(201,169,110,0.06); pointer-events: none;
}
.cta-strip h2 {
  font-family: var(--serif); font-size: clamp(2rem,4vw,3rem);
  font-weight: 400; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; position: relative;
}
.cta-strip h2 em { font-style: italic; color: var(--gold); }
.cta-strip p {
  font-family: var(--sans); font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,0.55); max-width: 440px;
  margin: 0 auto 36px; line-height: 1.7; position: relative;
}
.cta-strip-actions { display: flex; justify-content: center; gap: 16px; position: relative; }
.btn-outline-white {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 32px; border-radius: 2px; transition: border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* ===== TICKER ===== */
.ticker { background: var(--gold); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-flex; animation: ticker 30s linear infinite; }
.ticker-item {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy);
  padding: 0 48px; display: inline-flex; align-items: center; gap: 48px;
}
.ticker-item::after { content: '◆'; font-size: 0.4rem; opacity: 0.5; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== FOOTER ===== */
footer { background: #070f1c; color: rgba(255,255,255,0.5); padding: 72px 0 36px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 36px;
}
.footer-brand .logo-text {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  color: var(--white); display: block; margin-bottom: 4px;
}
.footer-brand .logo-sub {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase;
  display: block; margin-bottom: 20px;
}
.footer-brand p {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 300;
  color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 280px;
}
.footer-col h4 {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 20px;
}
.footer-col a, .footer-col p {
  display: block; font-family: var(--sans); font-size: 0.875rem; font-weight: 300;
  color: rgba(255,255,255,0.5); margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--sans); font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-bottom a { font-family: var(--sans); font-size: 0.75rem; color: rgba(255,255,255,0.25); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
    background: var(--navy); padding: 48px 32px; gap: 28px; z-index: 999;
  }
  .nav-links.open a { font-size: 1rem; }
  .mobile-toggle { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .financing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-strip-actions { flex-direction: column; align-items: center; }
}
