/* FUNDACJA DLA GDAŃSKA I POMORZA — theme */
:root {
  --navy: #1b2432;
  --navy-deep: #131a25;
  --paper: #f7f4ee;
  --card: #ffffff;
  --gold: #c9a227;
  --gold-soft: #e3c766;
  --ink: #2c2c2c;
  --muted: #6b6f76;
  --line: #e5dfd2;
  --radius: 12px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #9a7a14; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, .display-serif { font-family: var(--serif); font-weight: 600; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-deep); color: #cfd4dc; font-size: .82rem; }
.topbar a { color: #cfd4dc; text-decoration: none; margin-left: .9rem; }
.topbar a:hover { color: var(--gold-soft); }
.lang-switch { display: inline-flex; gap: .15rem; }
.lang-btn {
  background: transparent; border: 1px solid #3a4658; color: #cfd4dc;
  font-size: .74rem; letter-spacing: .06em; padding: .18rem .55rem; border-radius: 999px;
  cursor: pointer; font-family: var(--sans); font-weight: 600;
}
.lang-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.lang-btn:hover:not(.active) { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ---------- header ---------- */
.site-header {
  background: rgba(247, 244, 238, .97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 2px 14px rgba(19, 26, 37, .06);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(19, 26, 37, .18); background: rgba(247, 244, 238, .99); }
.navbar { --bs-navbar-padding-y: .6rem; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.navbar-brand .brand-text { min-width: 0; }
.navbar-brand .brand-name {
  font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.2; letter-spacing: .02em;
  white-space: normal; overflow-wrap: anywhere;
  border-left: 3px solid var(--gold); padding-left: .6rem;
}
.navbar-brand img { width: 40px; height: 40px; flex-shrink: 0; }
@media (min-width: 992px) {
  .navbar-nav { flex-shrink: 0; align-items: center; }
}
.navbar-nav .nav-link {
  color: var(--navy); font-weight: 500; font-size: 1rem; letter-spacing: .03em;
  padding: .5rem .8rem !important;
  white-space: nowrap;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .18rem;
  height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #9a7a14; }
.navbar-nav .nav-cta .nav-link {
  background: var(--gold); color: var(--navy-deep); border-radius: 999px; font-weight: 600;
  padding: .5rem 1.3rem !important; margin-left: .5rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(201, 162, 39, .28);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.navbar-nav .nav-cta .nav-link::after { display: none; }
.navbar-nav .nav-cta .nav-link:hover {
  background: #b3901f; color: var(--navy-deep);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201, 162, 39, .38);
}
@media (max-width: 1199.98px) {
  .navbar-nav .nav-link { padding-left: .6rem !important; padding-right: .6rem !important; }
}
.navbar-toggler { border-color: var(--line); flex-shrink: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201, 162, 39, .35); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; color: #fff; background: var(--navy-deep);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(15, 20, 30, .55); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 6rem 0 5rem; }
.hero-kicker {
  display: inline-block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(227, 199, 102, .5);
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.4rem; background: rgba(19,26,37,.35);
}
.hero h1 { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: #ecebe4; margin-top: 1.2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5); max-width: 46rem;
}
.hero-actions { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn-gold {
  background: var(--gold); color: var(--navy-deep); font-weight: 600; border-radius: 999px;
  padding: .7rem 1.7rem; border: none; box-shadow: 0 6px 18px rgba(201, 162, 39, .3);
}
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); transform: translateY(-1px); }
.btn-outline-light { border-radius: 999px; padding: .7rem 1.7rem; font-weight: 500; }
.btn { transition: all .2s ease; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: #efeadd; }
.section-dark { background: var(--navy); color: #e8e6df; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: #9a7a14; font-weight: 600; margin-bottom: .6rem; display: block;
}
.section-dark .eyebrow { color: var(--gold-soft); }
.lead-text { font-size: 1.06rem; color: #4a4d52; }
.section-dark .lead-text { color: #d5d3ca; }
.centered { text-align: center; }
.centered .section-desc, .centered p { margin-left: auto; margin-right: auto; }
.section-desc { max-width: 52rem; color: var(--muted); margin-top: .8rem; }

/* ---------- cards ---------- */
.card-fdgp {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; box-shadow: 0 3px 14px rgba(19, 26, 37, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-fdgp:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(19, 26, 37, .13); }
.card-fdgp .card-img-top { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.card-fdgp .card-body { padding: 1.35rem; }
.card-fdgp h3 a { color: var(--navy); text-decoration: none; }
.card-fdgp h3 a:hover { color: #9a7a14; }

/* portals */
.portal-card { text-align: center; padding: 1.6rem 1.2rem; }
.portal-card img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; border: 3px solid var(--gold); }
.portal-card .portal-link { display: inline-block; margin-top: .7rem; font-weight: 600; font-size: .92rem; }

/* ---------- mission teaser ---------- */
.mission-media img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(19, 26, 37, .18); width: 100%; height: auto; }
.figure-caption-src { font-size: .8rem; color: var(--muted); margin-top: .6rem; }

/* ---------- quote ---------- */
.quote-block {
  border-left: 4px solid var(--gold); padding: .5rem 0 .5rem 1.6rem;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-style: italic;
  color: var(--navy); line-height: 1.5; max-width: 52rem;
}
.quote-cite { font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .9rem; display: block; }
.section-dark .quote-block { border-left-color: var(--gold-soft); color: #f2efe7; }
.section-dark .quote-cite { color: #b9b6ac; }

/* ---------- facts counters ---------- */
.fact { text-align: center; padding: 1rem; }
.fact .fact-num {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  color: var(--gold-soft); line-height: 1;
}
.fact .fact-label { color: #d5d3ca; margin-top: .5rem; font-size: .95rem; }

/* ---------- team ---------- */
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; text-align: center; box-shadow: 0 3px 14px rgba(19,26,37,.07); }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.team-card .card-body { padding: 1.2rem; }
.team-role { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9a7a14; font-weight: 600; }
.team-bio { font-size: .9rem; color: var(--muted); }

/* ---------- donation band ---------- */
.donation-band {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3548 100%);
  color: #fff; border-radius: var(--radius); padding: 2.6rem 2rem; text-align: center;
}
.donation-band .account {
  display: inline-block; background: rgba(255, 255, 255, .1); border: 1px solid rgba(227, 199, 102, .45);
  border-radius: var(--radius); padding: .9rem 1.4rem; margin: 1.2rem 0 .4rem;
  font-family: 'Work Sans', monospace; font-size: clamp(.95rem, 2.2vw, 1.25rem);
  letter-spacing: .06em; color: var(--gold-soft); word-break: break-all;
}
.donation-note { color: #cfccc2; font-size: .92rem; max-width: 44rem; margin: .8rem auto 0; }

/* ---------- contact / form ---------- */
.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li { display: flex; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.contact-info-list strong { min-width: 6.5rem; color: var(--navy); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 3px 14px rgba(19, 26, 37, .07); }
.form-control, .form-check-input { border-radius: 8px; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .2); }
.form-label { font-weight: 600; color: var(--navy); font-size: .92rem; }
#formStatus p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9b6ac; font-size: .92rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer a { color: #cfccc2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: .22rem 0; }
.footer-socket { border-top: 1px solid #2c3648; padding: 1.1rem 0; font-size: .84rem; }
.reg-numbers { font-size: .88rem; line-height: 1.8; }

/* ---------- about sidebar: registration details ---------- */
.about-aside { position: relative; }
@media (min-width: 992px) {
  .about-aside { position: sticky; top: 96px; }
}
.card-fdgp.reg-card { border-top: 3px solid var(--gold); }
.card-fdgp.reg-card h3 {
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.card-fdgp.reg-card .contact-info-list li {
  flex-wrap: wrap;
  gap: .15rem .8rem;
  padding: .65rem 0;
}
.card-fdgp.reg-card .contact-info-list strong {
  min-width: 4.75rem;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.card-fdgp.reg-card .contact-info-list a { overflow-wrap: anywhere; }

/* ---------- utility ---------- */
.page-head { background: var(--navy); color: #fff; padding: 3.6rem 0 3rem; }
.page-head h1 { color: #fff; }
.page-head .crumb { font-size: .85rem; color: #b9b6ac; }
.page-head .crumb a { color: var(--gold-soft); text-decoration: none; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .3rem 0 .3rem 1.9rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .62rem; width: 1rem; height: 1rem;
  border-radius: 3px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 10.8 3.2 8l-1 1L6 12.8l7.8-7.8-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 10.8 3.2 8l-1 1L6 12.8l7.8-7.8-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
  background: #9a7a14;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep);
  padding: .6rem 1.2rem; z-index: 2000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

@media (max-width: 575.98px) {
  .hero { min-height: 88vh; }
  .section { padding: 3rem 0; }
  .donation-band { padding: 2rem 1.2rem; }
  .form-card { padding: 1.4rem; }
}
