/* Centrum Hipoteki - Dedykowany arkusz stylów */

:root {
  --color-primary: #000000;
  --color-navy: #0d1c32;
  --color-gold: #775a19;
  --color-gold-light: #fed488;
  --color-gold-dark: #785a1a;
  --color-background: #f9f9f9;
  --color-surface: #ffffff;
  --color-slate: #75777e;
  --color-slate-light: #c5c6cd;
}

/* Podstawowe ustawienia */
html {
  scroll-behavior: smooth;
  background-color: var(--color-background);
  color: #1a1c1c;
  overflow-x: hidden;
}

/* Klasy typograficzne zgodne ze specyfikacją w code.md */
.font-display-lg {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: -0.02em;
}

.font-display-lg-mobile {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.01em;
}

.font-headline-xl {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
}

.font-headline-lg {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.font-headline-md {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.font-body-lg {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.font-body-md {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.font-label-caps {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f3f3f4; /* surface-container-low */
}
::-webkit-scrollbar-thumb {
  background: var(--color-navy);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Karta z efektem uniesienia (Tonal Layering i Ambient Shadows) */
.premium-card {
  background: var(--color-surface);
  border-radius: 0.5rem; /* lg: 0.5rem (8px) */
  box-shadow: 0 4px 20px -2px rgba(13, 28, 50, 0.06);
  border: 1px solid rgba(197, 198, 205, 0.3); /* outline-variant z 30% krycia */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -4px rgba(13, 28, 50, 0.12);
  border-color: rgba(119, 90, 25, 0.4); /* delikatna poświata złotego koloru */
}

/* Animacje Fade-In w oparciu o Intersection Observer */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Przyciemniający overlay dla Hero Section */
.hero-overlay {
  background: linear-gradient(to right, rgba(13, 28, 50, 0.95) 0%, rgba(13, 28, 50, 0.8) 50%, rgba(13, 28, 50, 0.5) 100%);
}
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(13, 28, 50, 0.95) 0%, rgba(13, 28, 50, 0.85) 100%);
  }
}

/* Stylizacja aktywnych linków w nawigacji */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
