/* ============================================================
   Fundacja EMNA – style.css
   Główny arkusz stylów. Łatwy do modyfikacji.
   
   PALETA KOLORÓW (zmień tutaj, zmieni się wszędzie):
   --deep-teal:   #0a2e3d   (ciemny teal – nagłówki, tła)
   --teal:        #0d4f5a   (teal – akcenty, przyciski)
   --aqua:        #2da5a0   (turkus – gradienty, linki)
   --green:       #4caf50   (zielony – akcenty, gradienty)
   --light-green: #81c784   (jasna zieleń)
   --cream:       #faf8f5   (kremowe tło)
   --white:       #ffffff
   
   FONTY:
   Plus Jakarta Sans – nagłówki
   DM Sans – treść
   ============================================================ */

/* --- ZMIENNE CSS --- */
:root {
  --deep-teal: #0a2e3d;
  --teal: #0d4f5a;
  --aqua: #2da5a0;
  --green: #4caf50;
  --light-green: #81c784;
  --cream: #faf8f5;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #5a6a7a;
  --border-light: #e8ebe9;
  --shadow-sm: 0 2px 8px rgba(10,46,61,0.06);
  --shadow-md: 0 4px 20px rgba(10,46,61,0.10);
  --shadow-lg: 0 8px 40px rgba(10,46,61,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--aqua);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--teal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--deep-teal);
}

/* --- CONTAINER --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAWIGACJA (wspólna) --- */
/* 
   EDYCJA MENU: Zmień linki w pliku js/main.js w zmiennej menuItems.
   Dodaj/usuń pozycje menu tam – automatycznie zaktualizuje się 
   na wszystkich stronach.
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1001;
}

.nav-logo img {
  width: 44px;
  height: 44px;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  transition: color 0.3s;
}

.navbar.scrolled .nav-logo span {
  color: var(--deep-teal);
}

/* Desktop menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--teal);
  background: rgba(45,165,160,0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: var(--white) !important;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(45,165,160,0.3);
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: all 0.3s;
  margin: 3px 0;
}

.navbar.scrolled .hamburger span,
.hamburger.active span {
  background: var(--deep-teal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 100px 32px 40px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--deep-teal);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--aqua);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,46,61,0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,46,61,0.7), rgba(13,79,90,0.5), rgba(10,46,61,0.8));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--aqua), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  display: block;
}

/* --- PRZYCISKI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45,165,160,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,165,160,0.4);
  color: var(--white);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--aqua);
}

.btn-outline-dark:hover {
  background: var(--aqua);
  color: var(--white);
}

/* --- SEKCJE --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--aqua);
  margin-bottom: 12px;
}

/* --- O FUNDACJI --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-card .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-card h4 {
  font-size: 0.95rem;
  color: var(--teal);
}

.stat-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- KAFELKI (filary misji, podopieczni) --- */
/*
   DODAWANIE KAFELKÓW: Skopiuj <div class="card"> w HTML
   i zmień tytuł, opis, ikonę i link href.
*/
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.4s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--aqua);
  color: inherit;
}

.card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(45,165,160,0.1), rgba(76,175,80,0.1));
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

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

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aqua);
}

.card:hover .card-link {
  color: var(--teal);
}

/* --- KAFELKI Z OBRAZEM (podopieczni) --- */
.card-image {
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.card-image .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image .card-body {
  padding: 28px;
}

.card-image h3 {
  text-align: left;
}

.card-image p {
  text-align: left;
}

.card-image .card-link {
  text-align: left;
}

/* --- DZIAŁALNOŚĆ --- */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.4s;
}

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

.activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.activity-card .activity-body {
  padding: 28px;
}

.activity-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.activity-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

a.activity-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.activity-card .card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

a.activity-card:hover .card-link {
  color: var(--teal-dark);
}

/* --- ZARZĄD --- */
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.board-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}

.board-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.board-card .role {
  color: var(--aqua);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.board-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- STATUT (accordion) --- */
.statute-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-align: left;
}

.accordion-btn::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--aqua);
  transition: transform 0.3s;
}

.accordion-item.open .accordion-btn::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content-inner {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --- KONTAKT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,165,160,0.1), rgba(76,175,80,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--deep-teal);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-teal);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--aqua);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- STOPKA --- */
.footer {
  background: var(--deep-teal);
  color: var(--white);
  padding: 0;
}

.footer-gradient {
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--aqua), var(--green));
}

.footer-content {
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer h4 {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--aqua);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* --- PODSTRONA (szablon) --- */
.subpage-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  color: var(--white);
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.subpage-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.subpage-hero .breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.subpage-hero .breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.subpage-hero .breadcrumb a:hover {
  color: var(--white);
}

.subpage-hero .breadcrumb span {
  color: rgba(255,255,255,0.4);
  margin: 0 8px;
}

.subpage-content {
  padding: 80px 0;
}

.subpage-content .content-box {
  max-width: 800px;
  margin: 0 auto;
}

.subpage-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}

.subpage-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.subpage-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.subpage-content ul {
  color: var(--text-muted);
  margin: 0 0 20px 24px;
  font-size: 1rem;
}

.subpage-content ul li {
  margin-bottom: 8px;
}

/* --- PODOPIECZNY (specjalna podstrona) --- */
.beneficiary-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  color: var(--white);
}

.beneficiary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.beneficiary-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.beneficiary-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.beneficiary-info h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.beneficiary-info .subtitle {
  color: var(--aqua);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.beneficiary-info p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

.donate-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
  text-align: center;
}

.donate-box h3 {
  margin-bottom: 12px;
}

.donate-box .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--aqua);
  font-family: var(--font-heading);
}

.donate-box p {
  color: var(--text-muted);
  margin: 8px 0 20px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar .progress {
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--green));
  border-radius: 6px;
  transition: width 0.6s;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .beneficiary-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .statute-box {
    padding: 24px;
  }

  .beneficiary-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .subpage-content [style*="grid-template-columns: 1fr 380px"] {
    grid-template-columns: 1fr !important;
  }
}
