/* =========================================================
   SANA — Razem dla lepszego jutra
   ========================================================= */

:root {
  --green: #2E6B5B;
  --green-dark: #24564A;
  --blue: #234B63;
  --sun: #F2B84B;
  --sand: #F3EFE7;
  --charcoal: #273238;

  --green-tint: rgba(46, 107, 91, 0.10);
  --blue-tint: rgba(35, 75, 99, 0.10);
  --sun-tint: rgba(242, 184, 75, 0.16);

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: #4B565B; }

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 8px 20px rgba(46,107,91,0.28); }

.btn-outline { background: transparent; color: var(--charcoal); border-color: #D8D2C6; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-accent { background: var(--sun); color: var(--charcoal); }
.btn-accent:hover { background: #e6a935; box-shadow: 0 8px 20px rgba(242,184,75,0.35); }

.btn-block { width: 100%; justify-content: center; }

.icon-arrow { width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid rgba(39,50,56,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-shield { height: 46px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; text-align: right; }
.brand-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.3;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--green);
  line-height: 1.05;
}

.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--green); border-color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.social-row { display: flex; gap: 8px; }
.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.social-circle:hover { background: var(--green); }
.social-circle svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 64px 0 40px; overflow: hidden; position: relative; }
.hero .container { position: relative; z-index: 1; }
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow-leaf { position: relative; }

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--sun); }

.hero-lede {
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 28px;
}

.badge-building {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sun-tint);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.badge-building::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(242,184,75,0.35);
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--green);
  max-width: 480px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media {
  height: 440px;
 /* border-radius: 130px 24px 24px 130px;
  background: linear-gradient(135deg, rgba(46,107,91,0.08), rgba(35,75,99,0.12));
  border: 1px solid rgba(35,75,99,0.08);*/
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-media img {
  width: auto;
  height: 100%;
  max-width: 78%;
  max-height: 340px;
  object-fit: contain;
}

/* Animowany koliber — swobodnie podąża za kursorem po całej stronie,
   ale chowa się za każdą sekcją, która ma własne tło (patrz z-index) */
.hero-bg-bird {
  position: fixed;
  left: 0;
  top: 0;
  width: 120px;
  opacity: 0.20;
  z-index: -1;
  pointer-events: none;
  transform: translate(40px, 70px);
  will-change: transform;
}
.hb-hover {
  position: relative;
  width: 100%;
  aspect-ratio: 1438 / 988;
  animation: hb-hover 3.4s ease-in-out infinite;
}
.hb-body-img, .hb-wing-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hb-body-img { z-index: 1; }
.hb-wing-img {
  z-index: 2;
  transform-origin: 46% 41%;
  animation: hb-flap 0.18s ease-in-out infinite;
}

@keyframes hb-hover {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  22%      { transform: translate(3px, -7px) rotate(-2deg); }
  50%      { transform: translate(-4px, -2px) rotate(1.5deg); }
  76%      { transform: translate(3px, 5px) rotate(-1deg); }
}

@keyframes hb-flap {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50%      { transform: rotate(-14deg) scaleY(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .hb-hover, .hb-wing-img { animation: none; }
}

@media (pointer: coarse) {
  .hero-bg-bird { display: none; }
}

/* =========================================================
   Wartości: Misja / Wizja
   ========================================================= */
.values { padding: 30px 0 80px; }
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.value-card {
  background: #fff;
  border: 1px solid rgba(39,50,56,0.08);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
}
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h2 { font-size: 24px; }
.value-card p { font-size: 15px; margin-bottom: 0; }

.tint-green { background: var(--green-tint); }
.tint-blue { background: var(--blue-tint); }
.tint-sun { background: var(--sun-tint); }

/* =========================================================
   Dokumenty
   ========================================================= */
.documents { padding: 0 0 80px; }
.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--green-tint);
  border: 1px solid rgba(46,107,91,0.14);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  flex-wrap: wrap;
}
.doc-card h2 { font-size: 24px; }
.doc-card p { margin-bottom: 0; font-size: 15px; }

/* =========================================================
   Wsparcie + Kontakt
   ========================================================= */
.support-section { padding: 0 0 84px; }
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.support-card {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
}
.support-card h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.support-card > p {
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
}
.bank-box { margin-top: 8px; }
.bank-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.bank-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: #fff;
  margin-bottom: 16px;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 14px 16px;
}
.account-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: #fff;
  word-break: break-word;
}
.copy-btn {
  margin-left: auto;
  background: var(--sun);
  color: var(--charcoal);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.copy-btn:hover { background: #e6a935; }

.contact-card {
  background: #fff;
  border: 1px solid rgba(39,50,56,0.08);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-card h3 { font-size: 22px; }
.contact-card address {
  font-style: normal;
  font-size: 15px;
  color: #4B565B;
  margin-bottom: 22px;
  line-height: 1.6;
}
.org-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.org-details li { font-size: 14px; color: var(--charcoal); display: flex; gap: 10px; }
.org-details li span {
  font-weight: 700;
  color: var(--green);
  min-width: 56px;
  display: inline-block;
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter {
  background: #EAE6DC;
  padding: 40px 0;
}
.newsletter .container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.newsletter-icon { width: 82px; flex-shrink: 0; }
.newsletter-copy { flex: 0 0 300px; }
.newsletter-copy h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .02em; color: var(--green); }
.newsletter-copy p { font-size: 13.5px; margin: 0; }

.newsletter-form {
  flex: 1;
  display: flex;
  gap: 10px;
  max-width: 440px;
}
.newsletter-form input {
  flex: 1;
  border: 1px solid #D8D2C6;
  background: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
}
.newsletter-form input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.newsletter-form button { border: none; }

.newsletter .social-row { margin-left: auto; flex-shrink: 0; }
.newsletter .social-circle { background: var(--green); }
.newsletter .social-circle:hover { background: var(--blue); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--green); color: #fff; padding: 26px 0; }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-shield { height: 38px; }
.footer-brand .brand-eyebrow,
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-eyebrow { opacity: 0.85; }

.footer-copy { font-size: 13px; opacity: 0.85; color: #fff; }

.footer-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-size: 13px; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(39,50,56,0.15);
    background: none;
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .social-row.header-social { display: none; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media { height: 300px; border-radius: 24px; padding: 24px; }
  .hero-media img { max-height: 220px; }
  .hero h1 { font-size: 36px; }
  .hero-bg-bird { display: none; }

  .value-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .doc-card { flex-direction: column; align-items: flex-start; text-align: left; }

  .newsletter .container { flex-wrap: wrap; }
  .newsletter-copy { flex: 1 1 100%; }
  .newsletter-form { flex: 1 1 100%; max-width: none; }
  .newsletter .social-row { margin-left: 0; }
}

@media (max-width: 560px) {
  .site-header .container { height: 72px; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 30px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .values { padding: 20px 0 56px; }
  .value-card { padding: 30px 26px; }
  .documents { padding: 0 0 56px; }
  .support-section { padding: 0 0 56px; }
  .support-card, .contact-card { padding: 30px 24px; }
  .copy-btn { margin-left: 0; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
