:root {
  --green: #28eaa9;
  --green-hover: #2419aa;
  --red: #2419aa;
  --black: #000;
  --white: #fff;
  --gray-line: #dcd0ba;
  --footer-green: #28eaa9;
  --footer-dark-green: #22c693;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--black);
  background-color: var(--white);
  font-size: 18px;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 80%;
}

.narrow-container {
  max-width: 1050px;
}

/* SEKCJA 1 - HEADER */
header {
  background-color: #d6bf89;
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  padding-bottom: 30px;
  padding-top: 22px;
}

.logo img {
  height: 50px;
}

.logo a img {
  content: url('../img/logo_wit_fundacja_extended.png');
  transition: content 0s;
}

.logo a:hover img {
  content: url('../img/logo_wit_hover.png');
}

nav a {
  margin: 0 12px;
  padding: 10px 22px;
  color: var(--black);
}

nav a:hover {
  text-decoration: underline;
}

nav .kontakt {
  background-color: #2419aa;
  color: var(--white);
  border-radius: 0;
}

nav .kontakt:hover {
  background-color: #fff;
  color: #000;
  text-decoration: none;
}

nav .en {
  color: #000;
}

nav .en:hover {
  text-decoration: underline;
}

nav a[href="/fundacja"] {
  color: #22c693;
}

nav a[href="/fundacja"]:hover {
  color: #22c693;
  text-decoration: underline;
}

nav a.fundacja-link {
  color: #fff;
}

nav a.fundacja-link:hover {
  color: #fff;
  text-decoration: underline;
}

.separator {
  height: 1px;
  background-color: #b49d68;
  width: 100%;
  margin-bottom: -20px;
}

/* SEKCJA 2 - HERO */
.hero {
  background-color: #d6bf89;
  text-align: center;
  padding: 60px 0 100px 0;
}

.hero h1 {
  font-size: 80px;
  line-height: 1.3;
  font-family: "Bodoni Moda", serif;
  font-weight: normal;
}

.hero .highlight {
  font-family: "Outfit", sans-serif;
  font-weight: 100;
  color: #000;
}

.video-modal {
  display: none;
}

.video-modal.active {
  display: flex !important;
}

.video-caption {
  z-index: 1;
}

.video-modal.active .video-caption {
  display: none !important;
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 6px #000;
  z-index: 50;
}

/* SEKCJA 2 - STATS */
.stats {
  display: flex;
  background-color: #d6bf89;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
  padding: 30px 0 90px 0;
  gap: 20px;
  font-size: 18px !important; 
}

.stats > .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  gap: 20px;
}

.stat {
  flex: 1 1 180px;
  max-width: 220px;
}

.stat strong {
  display: block;
  font-size: 55px;
  margin-bottom: 12px;
  font-family: "Bodoni Moda", sans-serif;
  font-weight: 600;
}

/* SEKCJA 3 - IMAGE */
.video-thumbnail {
  position: relative;
  width: 100%;
  cursor: default; /* ← nie klikalny */
}

.video-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none; /* ← zabezpiecza obrazek */
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: transparent;
  border: 3px solid #5cae89;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 20px solid #5cae89;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transition: border-left-color 0.3s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #3a9976;
  box-shadow: 0 0 10px rgba(60, 160, 120, 0.3);
}

.play-button:hover::after {
  border-left-color: #3a9976;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.video-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  padding: 14px 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* Modal */

.video-fullwidth {
  width: 100%;
  margin: 0;
  padding: 0;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  max-width: none;
  cursor: pointer;
}

.video-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* Przycisk play na środku */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: transparent;
  border: 3px solid #5cae89;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 20px solid #5cae89;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.play-button:hover {
  border-color: #2419aa;
}

.play-button:hover::after {
  border-left-color: #2419aa;
}

.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* UNIWERSALNY PRZYCISK CTA */
.cta-button {
  background-color: #e7d6ad;
  color: var(--black);
  padding: 12px 15px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none !important;
  font-size: 18px;
  margin-top: 10px;
}

.cta-button:hover {
  background-color: #2419aa;
  color: #fff;
  text-decoration: none !important;
}

/* SEPARATOR NAD STOPKĄ */
.footer-separator {
  height: 1px;
  background-color: var(--gray-line);
  width: 100%;
}

.newsletter-box {
  background-color: #ffffff;
  border: 3px solid #f2e4cf;
  margin: 0px auto 70px auto;
  padding: 40px 20px;
  max-width: 1210px; /* elastyczna szerokość */
  width: 100%;        /* pozwala na RWD */
  box-sizing: border-box;
}

.newsletter-box-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.newsletter-text {
  flex: 1 1 300px;
  margin-left: 80px;
}

.newsletter-text p {
  font-size: 18px;
}

.newsletter-form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  flex: 1 1 300px;
  justify-content: flex-start;
  margin-right: 5px;
  align-items: center;
  margin-top: -2px;
  margin-bottom: 0;
  padding: 10px;
}

.newsletter-form input[type="email"] {
  padding: 12px 26px;
  font-size: 18px;
  font-family: "Outfit", sans-serif;
  border: 3px solid #f2e4cf;
  background-color: #fff;
  height: 50px;
  line-height: 50px;
  border-radius: 0;
  width: 300px;
  max-width: 100%;
}

.newsletter-form button {
  height: 50px;
  line-height: 50px;
  width: auto;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  background-color: #e7d6ad;
  color: #000;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  background-color: #2419aa;
  color: #fff;
}

.newsletter-box.container {
  max-width: 960px;
  margin: 60px auto;
  padding: 40px 20px;
  border: 3px solid #e7d6ad;
  background-color: #fff;
  box-sizing: border-box;
}

.narrow-container {
  max-width: 760px;
}

/* Responsywność */
@media (max-width: 768px) {
  .newsletter-box {
    padding: 26px 26px;
    margin: 0 auto 40px auto;
    width: 90%;
  }

  .newsletter-text {
    margin-left: 0;
    margin-bottom: 12px;
    width: 100%;
    text-align: left;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    height: 48px;
    font-size: 17px;
  }

  .newsletter-form button {
    margin-top: 0;
  }
}

/* FOOTER */
footer {
  font-size: 18px !important;
}

/* FOOTER TOP – biały */
.footer-top {
  background-color: #e7d6ad;
  padding: 25px 0;
}

.footer-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 50px;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  display: inline-block;
}

.social-icons img {
  height: 40px;
  transition: filter 0.3s;
}

.social-icons img:hover {
  filter: brightness(0) invert(1);
}

/* FOOTER BOTTOM – szare tło */
.footer-bottom {
  background-color: #d6bf89;
  padding: 30px 0;
}

.footer-links-row {
  display: flex;
  flex-direction: column;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-row {
  display: flex;
  gap: 14px;
}

.footer-links {
  font-size: 23px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  flex-direction: column;
  text-align: center;
  margin-bottom: 80px;
  align-items: flex-start;
}

.footer-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .fundacja {
  color: #fff;
}

.footer-links .pdf {
  text-decoration: underline;
}

.footer-links .pdf:hover {
  text-decoration: none;
}

.footer-links .en {
  color: #000;
}

/* Responsive for mobile */
@media (max-width: 900px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-links a {
    width: 100%;
  }

  .footer-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }
}

/* SPECYFICZNIE dla NASZ WIT */
.footer-links a[href="/fundacja"] {
  color: #22c693;
}

.footer-links a[href="/fundacja"]:hover {
  color: #22c693;
  text-decoration: underline;
}

/* Cookies + logo row */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 26px;
  gap: 30px;
}

.footer-cookies {
  flex: 1;
  max-width: 700px;
  font-size: 18px !important;
}

.footer-cookies p {
  margin: 5px 0;
}

.footer-cookies .cookie-link,
.footer-cookies .privacy-link {
  text-decoration: underline;
}

.footer-cookies .cookie-link:hover,
.footer-cookies .privacy-link:hover {
  text-decoration: none;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 200px;
  text-align: right;
  flex-direction: row; /* <-- kluczowe */
}

.footer-legal img {
  height: 28px;
  margin-top: 10px;
}

.footer-legal .footer-flags {
  height: 28px;
  margin-right: 15px;
}

.footer-legal a img {
  height: 28px;
  transition: filter 0.3s;
  margin-top: 0;
  margin-top: 15px;
}

.footer-legal a img:hover {
  filter: brightness(0) invert(1);
}

/* SEKCJA 4 - Projekty i realizacje */

.section-projects-tiles {
  padding: 30px 0;
  background-color: #fff;
  margin-top: 40px;
}

.project-tiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.project-tile {
  flex: 1 1 calc(33.333% - 20px);
  background-color: #fff;
  border: 3px solid #f2e4cf;
  padding: 24px;
  font-size: 18px;
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  box-sizing: border-box;
}

.project-tile img.tile-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.tile-text {
  font-size: 18px;
  line-height: 1.6;
}

.project-tile.highlight-border {
  border: 3px solid #d5de23;
}

.project-tile.border-volunteer {
  border: 3px solid #f2e4cf;
}

.project-tile.border-projekty {
  border: 3px solid #e7d6ad;
}

@media (max-width: 900px) {
  .project-tiles-grid {
    flex-direction: column;
  }

  .project-tile {
    flex: 1 1 100%;
    min-height: auto;
  }
}

/* HAMBURGER */
.hamburger {
  background: none;
  border: none;
  font-size: 64px;
  cursor: pointer;
  display: none;
}

/* Mobile menu styling */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #e7d6ad;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px 20px;
  gap: 30px;
}

.mobile-menu a {
  font-size: 54px;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  color: var(--black);
  line-height: 0.7;
}

.mobile-menu a:hover {
  text-decoration: underline;
}

.mobile-menu.open {
  display: flex;
}

.close-mobile {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 64px;
  cursor: pointer;
  padding-right: 30px;
}

/* Mobile menu header with logo and close button */
.mobile-menu-header {
  width: 100%;
  background-color: #e7d6ad;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: absolute;
  top: 0;
  left: 0;
}

.mobile-menu-header .mobile-logo {
  padding-left: 28px;
  padding-top: 23px;
}

.mobile-logo img {
  height: 50px;
}

.link-en {
  color: ##2419aa !important;
}
.link-wit {
  color: #00d7a1 !important;
}

/* Responsive for mobile */
@media (max-width: 900px) {
  header {
    padding: 12px 0;
  }

  header .separator {
    display: none;
  }

  .header-content {
    padding-top: 0px;
    padding-bottom: 20px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .stats,
  .footer-top-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .container {
    width: 90%;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links-row {
    gap: 20px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-cookies,
  .footer-legal {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-links a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .footer-links a + a::before {
    content: none;
  }

  .hero h1 {
    font-size: 58px;
    line-height: 1.2;
  }

  .stats {
    font-size: 18px !important;
    padding: 20px 0 60px 0;
  }

  .stat strong {
    font-size: 40px;
    margin-bottom: 8px;
  }
}