/* ═══════════════════════════════════════════════════
   Fundacja na fali rozwoju — Design System
   Aesthetic: Deep Water Sports Editorial
   Fonts: Barlow Condensed (display) + Barlow (body)
   ═══════════════════════════════════════════════════ */

:root {
  --navy:        #0c1f3f;
  --navy-mid:    #152d54;
  --ocean:       #1362a8;
  --teal:        #0D7A8A;
  --foam:        #d4eef2;
  --amber:       #C49A2A;
  --amber-dark:  #9A7518;
  --text:        #111827;
  --text-muted:  #6b7280;
  --bg:          #ffffff;
  --bg-light:    #edf6f8;
  --border:      #e0eef8;
  --shadow:      0 2px 16px rgba(12, 31, 63, 0.08);
  --shadow-lg:   0 8px 32px rgba(12, 31, 63, 0.15);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --max-w:       1160px;
  --pad:         1.5rem;
  --radius:      10px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean); }

/* ── Layout ── */
main { min-height: 55vh; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem var(--pad) 5rem;
}

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.nav-inner ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-inner a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 5px;
  transition: all 0.15s;
}
.nav-inner a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.nav-cta {
  background: var(--amber) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--amber-dark) !important;
  color: var(--navy) !important;
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(-40deg, #061428, #0d2d5a, #0b5a6a, #0b3d7a);
  background-size: 400% 400%;
  animation: gradientFlow 18s ease infinite;
  color: white;
  text-align: center;
  padding: 7rem var(--pad) 9rem;
  overflow: hidden;
}

/* Dot grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content { position: relative; max-width: 700px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  opacity: 0.85;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg { width: 100%; height: 80px; }

/* ═══════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════ */
.stats-strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border);
}

.stat {
  flex: 1;
  text-align: center;
  padding: 2.25rem 1.5rem;
  max-width: 240px;
}

.stat + .stat { border-left: 1px solid var(--border); }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 0.3rem;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ═══════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.section-header h2,
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ocean);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.15s;
}
.section-link:hover { color: var(--teal); }

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--amber);
  color: var(--navy);
  border: 2px solid transparent;
}
.btn:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 154, 42, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--ocean);
  color: var(--ocean);
}
.btn-outline:hover {
  background: var(--ocean);
  color: white;
  box-shadow: 0 6px 16px rgba(19, 98, 168, 0.25);
}

/* ═══════════════════════════════════
   POST CARDS — GRID (home)
   ═══════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 3px solid var(--teal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-card-img {
  height: 190px;
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-no-img {
  height: 140px;
  background: linear-gradient(135deg, var(--navy) 0%, #0b4d5c 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle wave pattern inside placeholder */
.post-card-no-img::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -10%;
  width: 120%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,30 C200,60 400,0 600,30 C800,60 1000,0 1200,30 L1200,60 L0,60 Z' fill='rgba(14,165,233,0.15)'/%3E%3C/svg%3E") no-repeat center/cover;
}

.post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.post-card time {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.post-card h2, .post-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.post-card a { color: inherit; text-decoration: none; }
.post-card a:hover { color: var(--ocean); }

/* ═══════════════════════════════════
   POST CARDS — LIST (aktualnosci)
   ═══════════════════════════════════ */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card--row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: none;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

@media (min-width: 560px) {
  .post-card--row { grid-template-columns: 180px 1fr; }
  .post-card--row .post-card-no-img { height: 100%; min-height: 120px; }
  .post-card--row .post-card-img { height: 100%; }
}

/* ═══════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════ */
.post { max-width: 760px; }

.post-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.post-header { margin-bottom: 2rem; }

.post-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.post-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border-bottom: 3px solid var(--teal);
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}

.post-content { font-size: 1.05rem; line-height: 1.8; }
.post-content h2, .post-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 2rem 0 0.75rem;
}
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.2rem; }
.post-content p { margin-bottom: 1.1rem; }
.post-content ul, .post-content ol { margin: 0 0 1.1rem 1.5rem; }
.post-content strong { color: var(--navy); }
.post-content a { color: var(--ocean); }

/* ═══════════════════════════════════
   PAGE CONTENT (static pages)
   ═══════════════════════════════════ */
.page-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--teal);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 2.25rem 0 0.75rem;
}

.page-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-mid);
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem;
}

.page-content p { margin-bottom: 1rem; line-height: 1.75; }
.page-content ul, .page-content ol { margin: 0 0 1rem 1.5rem; line-height: 1.75; }
.page-content a { color: var(--ocean); }
.page-content > p:first-of-type { font-size: 1.1rem; color: var(--text-muted); }

.back-link { margin-bottom: 1.5rem; }
.back-link a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link a:hover { color: var(--ocean); }

.album-desc { color: var(--text-muted); margin: 0.5rem 0 2rem; }

/* ═══════════════════════════════════
   BANK DETAILS
   ═══════════════════════════════════ */
.bank-details {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bank-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bank-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
}

.bank-value {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.bank-iban {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: white;
}

/* ═══════════════════════════════════
   CONTACT
   ═══════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border-top: 3px solid var(--teal);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.5rem !important;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 !important;
  line-height: 1.6;
}

.contact-value a {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 600;
}
.contact-value a:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   GALLERY
   ═══════════════════════════════════ */
.albums-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.album-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  border-top: 3px solid var(--teal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.album-card time {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.album-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.album-card a { color: var(--navy); text-decoration: none; }
.album-card a:hover { color: var(--ocean); }

.album-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.album-count {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted) !important;
  margin-top: 0.75rem !important;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.2s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.4rem 0.5rem;
  background: var(--bg-light);
}

/* ═══════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════ */
.empty-state {
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 0;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.site-footer {
  background: var(--navy);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--pad) 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  display: block;
  border-radius: 10px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.footer-nav a:hover { color: rgba(255, 255, 255, 0.95); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 640px) {
  .nav-inner { height: auto; padding: 0.75rem var(--pad); flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .nav-inner ul { gap: 0.1rem; }
  .hero { padding: 5rem var(--pad) 7rem; }
  .stats-strip { flex-direction: column; align-items: center; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
  .stat { width: 100%; max-width: 100%; }
  .footer-inner { flex-direction: column; }
}
