/* ============================================================
   FUNDACJA EGO POWER — site styles
   Palette: teal #0eb290 (accent), deep slate #14333a, purple #552583
   Fonts: Montserrat (headings), Open Sans (body)
   ============================================================ */

:root {
  --teal: #0eb290;
  --teal-dark: #0a8a70;
  --teal-soft: #e2f6f1;
  --ink: #14333a;
  --ink-soft: #45605f;
  --purple: #552583;
  --paper: #ffffff;
  --mist: #f4f8f7;
  --line: #e3ecea;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 51, 58, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

p { color: var(--ink-soft); }

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

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.83rem;
  padding: 6px 0;
}
.topbar a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; gap: 4px; }
.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
  transition: all 0.2s ease;
}
.lang-btn:hover { border-color: #fff; color: #fff; }
.lang-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(20, 51, 58, 0.05);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  display: block; flex-shrink: 0;
  width: auto; height: auto;
  background: none; border-radius: 0;
}
.brand-mark img { display: block; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 8px 13px !important;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar .nav-link:hover { color: var(--teal-dark); background: var(--teal-soft); }
.navbar .nav-link.active { color: var(--teal-dark); }
.navbar-toggler { border: 1px solid var(--line); flex-shrink: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(14, 178, 144, 0.25); }
.navbar-collapse { z-index: 1050; background: var(--paper); }
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(20, 51, 58, 0.08);
  }
  .site-header { position: relative; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 90px 0 84px;
  background:
    linear-gradient(115deg, rgba(11, 46, 54, 0.92) 0%, rgba(10, 90, 78, 0.86) 55%, rgba(85, 37, 131, 0.72) 100%),
    var(--ink);
}
.hero-compact { padding: 62px 0 56px; }
.hero .kicker {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fe8d2;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 18px; }
.hero .lead { color: rgba(255, 255, 255, 0.88); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 46rem; }
.hero-accent { color: #5fe6c8; }

/* ---------- Buttons ---------- */
.btn-teal {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 26px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-teal:hover, .btn-teal:focus {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 178, 144, 0.3);
  transform: translateY(-1px);
}
.btn-outline-teal {
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.btn-outline-teal:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-outline-light-clean {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 10px;
}
.btn-outline-light-clean:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: rgba(255, 255, 255, 0.82); }
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
  display: block;
}
.section-ink .eyebrow { color: #5fe6c8; }
.section-intro { max-width: 46rem; }
.section-intro.centered { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card-ego {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  height: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card-ego { text-decoration: none; display: block; color: inherit; }
.card-ego:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20, 51, 58, 0.12); }
.card-ego h3 { font-size: 1.06rem; margin-bottom: 10px; }
.card-ego p { font-size: 0.94rem; margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.card-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.card-photo img { width: 100%; object-fit: cover; }
.card-photo .card-photo-body { padding: 20px 22px; }

/* feature photo cards (therapy offer grid) */
.offer-card { padding: 0; overflow: hidden; }
.offer-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.offer-card .offer-body { padding: 18px 20px 20px; }
.offer-card h3 { font-size: 0.98rem; }

/* ---------- Info list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230eb290'%3E%3Cpath d='M12.7 5.3a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0L4.3 8.7a1 1 0 0 1 1.4-1.4l1.8 1.8 3.8-3.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section-ink .check-list li { color: rgba(255, 255, 255, 0.85); }

/* ---------- Stat / fact band ---------- */
.fact-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}
.fact-band .fact-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 1.35rem;
}
.fact-band .fact-label { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--teal-soft);
}
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

/* ---------- Tables ---------- */
.table-ego { width: 100%; border-collapse: collapse; }
.table-ego th, .table-ego td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-ego th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--mist);
}
.table-ego td { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Contact page ---------- */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 178, 144, 0.15);
}
.form-label { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.88rem; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 767.98px) { .map-wrap iframe { height: 300px; } }

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3 220px;
  column-gap: 14px;
}
.gallery-grid .gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.gallery-grid .gallery-item img { width: 100%; transition: transform 0.3s ease; }
.gallery-grid .gallery-item:hover img { transform: scale(1.03); }

/* ---------- Documents ---------- */
.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doc-row:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 51, 58, 0.12); color: inherit; }
.doc-row .doc-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
}
.doc-row h3 { font-size: 1rem; margin-bottom: 2px; }
.doc-row .doc-meta { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #F0CCCC;
  color: #4a2a2e;
  padding: 56px 0 30px;
  font-size: 0.92rem;
}
.site-footer h3 {
  color: #2e1a1d;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: #4a2a2e; text-decoration: none; }
.site-footer a:hover { color: #b06070; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 9px; }
.footer-brand-name {
  display: inline-block;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.footer-brand-name img { display: block; }
.footer-legal {
  border-top: 1px solid rgba(74, 42, 46, 0.2);
  margin-top: 36px;
  padding-top: 22px;
  font-size: 0.84rem;
  text-align: center;
}
.footer-legal p { color: rgba(74, 42, 46, 0.75); margin-bottom: 4px; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
  outline: 3px solid rgba(14, 178, 144, 0.55);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

/* ---------- Sub-page hero banner (inner pages) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 66px 0 60px;
  background:
    linear-gradient(115deg, rgba(11, 46, 54, 0.93) 0%, rgba(10, 90, 78, 0.85) 60%, rgba(85, 37, 131, 0.7) 100%),
    var(--ink);
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; max-width: 44rem; }

/* ---------- Utility ---------- */
.mt-6 { margin-top: 3.5rem; }
.mb-6 { margin-bottom: 3.5rem; }
.lead-text { font-size: 1.06rem; color: var(--ink-soft); }
.note-small { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Mission & activity detail sections ---------- */
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(20, 51, 58, 0.05);
}
.value-card i {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.value-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; margin-bottom: 0; }

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(20, 51, 58, 0.05);
}
.step-card .step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-card p { font-size: 0.93rem; margin-bottom: 0; }

.mission-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.mission-quote blockquote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.4;
}
.mission-quote blockquote::before {
  content: '\u201C';
  color: var(--teal);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 4px;
}
.mission-quote blockquote::after {
  content: '\u201D';
  color: var(--teal);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
  margin-left: 4px;
}
.mission-quote figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
