/* Projekty WIT — oczyszczony CSS. Zachowano kolejność reguł i stany JS. */

: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%;
}

header {
  background-color: #d6bf89;
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  padding-bottom: 42px;
  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;
}

.video-modal {
  display: none;
}

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

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

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

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

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

.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: #ffffff;
  box-shadow: 0 0 10px rgba(60, 160, 120, 0.3);
}

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

.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;
  }
}

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

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

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: transparent;
  border: 3px solid #FFF;
  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 #FFF;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

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

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

.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;
}

.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;
}

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

.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 {
  background-color: #d6bf89;
  padding: 30px 0;
}

.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 .pdf {
  text-decoration: underline;
}

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

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

@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;
  }
}

.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 {
  text-decoration: underline;
}

.footer-cookies .cookie-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;
}

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

.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);
}

.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 #e3d6b0;
  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;
}

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

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

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

.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 {
  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;
}

@media (max-width: 900px) {
  header {
    padding: 12px 0;
  }

  .header-content {
    padding-top: 10px;
    padding-bottom: 26px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

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

  .container {
    width: 90%;
  }

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

  .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;
  }
}

.offer-owner-section {
  background-color: #fff;
  padding: 0 0 65px;
  margin-top: -50px;
}

.offer-owner {
  background: radial-gradient(circle, #a6d6e5 0.000%, #a6d6e5 16.667%, #baccac calc(16.667% + 1px), #baccac 33.333%, #dbbb50 calc(33.333% + 1px), #dbbb50 50.000%, #dbbb50 calc(50.000% + 1px), #dbbb50 66.667%, #baccac calc(66.667% + 1px), #baccac 83.333%, #a6d6e5 calc(83.333% + 1px) 100.000%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 50px 65px;
}

.offer-owner-photo {
  flex: 0 0 180px;
}

.offer-owner-photo img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
}

.offer-owner-text {
  flex: 1;
  font-size: 20px;
  line-height: 1.45;
  color: #000;
}

.offer-owner-text p {
  margin: 0;
}

@media (max-width: 900px) {
  .offer-owner-section {
    padding-bottom: 50px;
  }

  .offer-owner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 40px 28px;
  }

  .offer-owner-photo {
    flex: none;
  }

  .offer-owner-photo img {
    width: 160px;
    height: 160px;
  }

  .offer-owner-text {
    width: 100%;
    font-size: 18px;
    line-height: 1.55;
    text-align: left;
  }
}

/* ===========================================================
   NOWE MENU MOBILNE WIT — wariant beżowy z projektu graficznego
   Tylko ekrany <= 900px; desktop pozostaje nietknięty.
   =========================================================== */
@media (max-width: 900px) {
  .mobile-menu.mobile-menu--editorial {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    padding: 0;
    gap: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    color: #000;
    background: linear-gradient(to bottom, #d2bf8c 0%, #d2bf8c 21%, #e8dec3 35%, #fff 62%, #fff 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

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

  .mobile-menu--editorial .mobile-menu-header {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    width: 100%;
    min-height: 150px;
    padding: 36px 7.5% 26px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: transparent;
  }

  .mobile-menu--editorial .mobile-menu-header .mobile-logo {
    padding: 0;
    margin: 0;
  }

  .mobile-menu--editorial .mobile-logo a { display: block; line-height: 1; }
  .mobile-menu--editorial .mobile-logo img {
    height: clamp(38px, 10vw, 54px);
    width: auto;
    display: block;
    filter: brightness(0);
  }

  .mobile-menu--editorial .close-mobile {
    position: static;
    flex: 0 0 auto;
    padding: 0;
    margin: -8px 0 0;
    border: 0;
    color: #000;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: clamp(46px, 12vw, 66px);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu--editorial .close-mobile:hover { color: #000; opacity: .65; }

  .mobile-menu--editorial .mobile-menu-body {
    width: 100%;
    padding: 0 5% 38px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-menu--editorial .mobile-menu-primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: clamp(36px, 7vh, 70px) 7% clamp(34px, 6vh, 60px);
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
  }

  .mobile-menu--editorial .mobile-menu-primary a {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(38px, 9.2vw, 70px);
    font-weight: 750;
    line-height: 1.14;
    color: #000;
    text-decoration: none;
    letter-spacing: -.025em;
  }

  .mobile-menu--editorial .mobile-menu-secondary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(35px, 6vh, 70px) 7% 0;
  }
  .mobile-menu--editorial .mobile-menu-secondary a {
    display: block;
    color: #000;
    font-family: "Outfit", sans-serif;
    font-size: clamp(21px, 5.5vw, 34px);
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
  }
  .mobile-menu--editorial .mobile-menu-primary a:hover,
  .mobile-menu--editorial .mobile-menu-secondary a:hover {
    color: #2419aa;
    text-decoration: none;
  }

  .mobile-menu--editorial .mobile-menu-legal {
    margin-top: auto;
    padding: clamp(40px, 7vh, 85px) 7% 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(11px, 2.7vw, 14px);
    font-weight: 650;
    line-height: 1.35;
  }
  .mobile-menu--editorial .mobile-menu-legal p { margin: 0 0 14px; }
  .mobile-menu--editorial .mobile-menu-legal a {
    display: inline;
    font-size: inherit;
    color: #000;
    text-decoration: underline;
    line-height: inherit;
  }
  .mobile-menu--editorial a:focus-visible,
  .mobile-menu--editorial button:focus-visible { outline: 3px solid #2419aa; outline-offset: 4px; }
}

@media (max-width: 900px) and (max-height: 690px) {
  .mobile-menu--editorial .mobile-menu-header { min-height: 105px; padding-top: 24px; padding-bottom: 18px; }
  .mobile-menu--editorial .mobile-menu-primary { padding-top: 24px; padding-bottom: 24px; }
  .mobile-menu--editorial .mobile-menu-secondary { padding-top: 24px; }
  .mobile-menu--editorial .mobile-menu-legal { padding-top: 35px; }
}
