/* ==============================================
   Fundacja ERŚ — Custom Styles
   Edytuj kolory, czcionki i rozmiary tutaj.
   ============================================== */

/* ---------- Fonts ---------- */
body {
  font-family: 'Source Sans 3', sans-serif;
  color: #2c3340;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
}

/* ---------- Brand Colors ---------- */
.text-gold  { color: #d4a017 !important; }
.text-blue  { color: #1570c6 !important; }
.text-green { color: #00c200 !important; }

.bg-gold  { background-color: #d4a017 !important; }
.bg-blue  { background-color: #1570c6 !important; }
.bg-green { background-color: #00c200 !important; }

.bg-gold-light  { background-color: rgba(212, 160, 23, 0.12); }
.bg-blue-light  { background-color: rgba(21, 112, 198, 0.12); }
.bg-green-light { background-color: rgba(0, 194, 0, 0.12); }

.text-muted-light { color: rgba(255,255,255,0.45); }
.text-light-75    { color: rgba(255,255,255,0.75); }
.text-light-65    { color: rgba(255,255,255,0.65); }
.text-light-60    { color: rgba(255,255,255,0.60); }
.text-light-40    { color: rgba(255,255,255,0.40); }

/* ---------- Section Utilities ---------- */
.section-padding {
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .section-padding { padding: 6rem 0; }
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.heading-line {
  width: 4rem;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---------- Navbar ---------- */
#mainNav {
  transition: background 0.3s, box-shadow 0.3s;
}
#mainNav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
#mainNav .nav-link:hover {
  color: #fff;
}
#mainNav.navbar-scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
#mainNav.navbar-scrolled .nav-link {
  color: #2c3340;
}
#mainNav.navbar-scrolled .nav-link:hover {
  color: #1570c6;
}
#mainNav.navbar-scrolled .navbar-brand span {
  /* colors stay the same */
}
/* Hamburger icon color */
#mainNav .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
#mainNav .navbar-toggler-icon {
  filter: invert(1);
}
#mainNav.navbar-scrolled .navbar-toggler {
  border-color: rgba(0,0,0,0.15);
}
#mainNav.navbar-scrolled .navbar-toggler-icon {
  filter: none;
}

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(44,51,64,0.95), rgba(44,51,64,0.85), rgba(44,51,64,0.90));
  position: relative;
  overflow: hidden;
}
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  display: flex;
}
.hero-topbar .bar-gold  { flex: 1; background: #d4a017; }
.hero-topbar .bar-blue  { flex: 1; background: #1570c6; }
.hero-topbar .bar-green { flex: 1; background: #00c200; }

.hero-arrow {
  width: 48px;
  height: 48px;
  border-width: 2px;
}

/* ---------- Icon Box ---------- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Project Cards (top border) ---------- */
.border-top-primary {
  border-top: 4px solid #1570c6 !important;
}

/* ---------- Dark Section ---------- */
.section-dark {
  background: linear-gradient(135deg, rgba(44,51,64,0.95), rgba(44,51,64,0.85));
  color: #fff;
}
.card-dark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
}

/* ---------- Avatar ---------- */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1570c6;
}
.avatar-green {
  background: rgba(0, 194, 0, 0.1);
  color: #00c200;
}

/* ---------- Gallery ---------- */
.gallery-item {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e9ecef;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- Smooth scroll ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* ---------- Language Switch ---------- */
.lang-switch {
  color: #d4a017 !important;
  font-weight: 600 !important;
}
.lang-switch:hover {
  color: #fff !important;
}
#mainNav.navbar-scrolled .lang-switch {
  color: #1570c6 !important;
}
#mainNav.navbar-scrolled .lang-switch:hover {
  color: #d4a017 !important;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 30, 38, 0.97);
  color: #ccc;
  padding: 1rem 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
  border-top: 2px solid #d4a017;
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.btn-gold {
  background-color: #d4a017;
  color: #fff;
  border: none;
}
.btn-gold:hover {
  background-color: #b8890f;
  color: #fff;
}
