/* ============================================
   FUNDACJA AZAP — Main Stylesheet
   ============================================ */

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

:root {
  --navy:      #1c1c2e;
  --blue:      #c0392b;
  --blue-lt:   #e74c3c;
  --gold:      #e8a020;
  --light:     #f4f7fb;
  --white:     #ffffff;
  --text:      #2d3748;
  --muted:     #6b7280;
  --border:    #dde4ef;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(26,46,74,0.10);
  --trans:     0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt { background: var(--light); }

/* --- Section Headings --- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  color: var(--navy);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 48px;
}
.section-header { margin-bottom: 48px; }
.section-header::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gold);
  margin-top: 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #a87e1e;
  color: var(--white);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  height: 82px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}
.nav-logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.nav-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.nav-logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-logo-sub {
  display: none;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--trans);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 7px 16px;
}
.nav-links a.nav-cta:hover {
  background: #a87e1e;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans);
}

/* page body offset for fixed header */
body { padding-top: 70px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 82px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,28,46,0.72);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  color: var(--white);
  max-width: 700px;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
  display: grid;
  gap: 28px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2,1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,46,74,0.14); }

.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-icon {
  width: 48px; height: 48px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p  { color: var(--muted); font-size: 0.93rem; }

/* ============================================
   STAT BAR
   ============================================ */
.stat-bar {
  background: var(--navy);
  padding: 48px 0;
}
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.2rem;
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
}
.stat-item p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ============================================
   TWO-COLUMN SPLIT
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.split-text h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 16px; }
.split-text p  { color: var(--muted); margin-bottom: 14px; }

/* ============================================
   TIMELINE
   ============================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.timeline-item p  { color: var(--muted); font-size: 0.9rem; }
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ============================================
   BANNER CTA
   ============================================ */
.banner-cta {
  background: linear-gradient(135deg, #1c1c2e 0%, #8b0000 100%);
  padding: 64px 0;
  text-align: center;
}
.banner-cta h2 { color: var(--white); font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 14px; }
.banner-cta p  { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 28px; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-detail-text strong { display: block; font-size: 0.88rem; color: var(--navy); margin-bottom: 2px; }
.contact-detail-text span  { font-size: 0.9rem; color: var(--muted); }

.reg-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
}
.reg-box h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.reg-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.reg-row:last-child { border-bottom: none; }
.reg-row span:first-child { color: var(--muted); }
.reg-row span:last-child  { font-weight: 600; color: var(--navy); }

/* ============================================
   FORM
   ============================================ */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.contact-form-wrap h3 { font-size: 1.3rem; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  transition: border-color var(--trans);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }

#formStatus { margin-top: 12px; font-size: 0.9rem; }
#formStatus.success { color: #16a34a; }
#formStatus.error   { color: #dc2626; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 82px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,28,46,0.45) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem,4vw,2.8rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: var(--gold); }

/* ============================================
   MISSION PAGE SPECIFICS
   ============================================ */
.objective-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 4px solid var(--gold);
}
.objective-num {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.objective-text h4 { margin-bottom: 6px; font-size: 1rem; }
.objective-text p  { color: var(--muted); font-size: 0.9rem; }

/* ============================================
   ACHIEVEMENTS
   ============================================ */
.achievement-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
  border-top: 4px solid var(--blue);
}
.achievement-card .num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
}
.achievement-card h4 { font-size: 1rem; margin: 8px 0 10px; }
.achievement-card p  { color: var(--muted); font-size: 0.88rem; }

/* ============================================
   ACTIVITIES
   ============================================ */
.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.activity-card img { width: 100%; height: 220px; object-fit: cover; }
.activity-card-body { padding: 28px; }
.activity-card-body .tag {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.activity-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.activity-card-body p  { color: var(--muted); font-size: 0.9rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(2,1fr); }
  .stat-bar .container { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 24px; border-radius: 0; font-size: 0.95rem; }
  .nav-toggle { display: flex; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split img { height: 260px; }
  .split.reverse .split-img { order: -1; }

  .cards-grid.cols-3,
  .cards-grid.cols-2 { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .stat-bar .container { grid-template-columns: repeat(2,1fr); }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .stat-bar .container { grid-template-columns: 1fr 1fr; }
  .nav-logo-sub { display: none; }
}
