/* TarczaKsięgowa — custom styles */

/* Self-hosted Inter (latin + latin-ext dla polskich znaków) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy:   #0D1B3E;
  --gold:   #C9A84C;
  --gold-l: #F0D080;
  --cream:  #FDFBF5;
}

html { scroll-behavior: smooth; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* Navbar — transparent on top, solid when scrolled */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* Hero background pattern */
.hero-bg-pattern {
  background-image:
    linear-gradient(rgba(201,168,76,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Fade-in animations */
.fade-in,
.fade-in-delay {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Feature cards */
.feature-card {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  transform: translateY(-3px);
}

/* Security cards */
.security-card {
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.security-card:hover {
  transform: translateY(-3px);
}

/* Gallery */
.gallery-item {
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.gallery-item:hover {
  transform: translateY(-4px);
}

/* Lightbox */
#lightbox {
  backdrop-filter: blur(4px);
}
#lightbox.open {
  display: flex;
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Form focus ring via gold */
input:focus, textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* Form success / error */
#form-msg.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
#form-msg.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
