/* ── Local fonts ── */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── Design tokens ── */
:root {
  --orange:        #FF9900;
  --orange-dark:   #e68a00;
  --text:          #424242;
  --brown:         #3d2b1f;
  --dark-bg:       #222222;
  --font:          'Nunito', sans-serif;

  /* Override Bootstrap warning to brand orange */
  --bs-warning:          #FF9900;
  --bs-warning-rgb:      255,153,0;
  --bs-progress-bar-bg:  #FF9900;
}

body          { font-family: var(--font); color: var(--text); }
*,*::before,*::after { box-sizing: border-box; }

/* ── Utility overrides ── */
.text-orange  { color: var(--orange) !important; }
.bg-orange    { background-color: var(--orange) !important; }
.border-orange{ border-color: var(--orange) !important; }

/* ── Buttons ── */
.btn-orange {
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  border-radius: 38px;
}
.btn-orange:hover, .btn-orange:focus { background: var(--orange-dark); color: #fff; }

.btn-donate {
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  border-radius: 9px;
  padding: .55rem 1.4rem;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-donate:hover { background: var(--orange-dark); color: #fff; }

.btn-outline-orange {
  background: transparent;
  color: var(--brown);
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  border: 3px solid var(--orange);
  border-radius: 38px;
}
.btn-outline-orange:hover { background: rgba(255,153,0,.1); color: var(--brown); border-color: var(--orange); }

/* ── TOP BAR ── */
.topbar {
  background: var(--dark-bg);
  height: 40px;
  font-size: .82rem;
}
.topbar a         { color: #bbb; text-decoration: none; }
.topbar a:hover   { color: var(--orange); }
.topbar-sep       { color: #555; }
.topbar-social a  { color: var(--orange); font-weight: 700; }

/* ── NAVBAR ── */
.site-navbar {
  position: absolute;
  top: 40px;
  left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%);
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}
.site-navbar .navbar-brand img { height: 60px; }

/* Кнопка-бургер: біла підкладка, щоб не губилась на фото */
.site-navbar .navbar-toggler {
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF9900' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.site-navbar .nav-link {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff !important;
  white-space: nowrap;
  padding-left: .85rem !important;
  padding-right: .85rem !important;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus { color: var(--orange) !important; }
.site-navbar .dropdown-toggle::after { border-top-color: #fff; }
.site-navbar .nav-link:hover.dropdown-toggle::after { border-top-color: var(--orange); }

/* Dropdown styled orange */
.site-navbar .dropdown-menu {
  background: var(--orange);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2);
  min-width: 220px;
  padding: .75rem 0;
}
.site-navbar .dropdown-item {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .55rem 1.4rem;
}
.site-navbar .dropdown-item:hover { background: rgba(0,0,0,.12); color: #fff; }

/* Відкривати dropdown по hover, а не по кліку */
.site-navbar .nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* Mobile nav background */
.site-navbar .navbar-collapse {
  background: rgba(0,0,0,.85);
  border-radius: 0 0 12px 12px;
  padding: .5rem 1rem 1rem;
}
@media (min-width: 992px) {
  .site-navbar .navbar-collapse { background: transparent; padding: 0; }
}

/* ── HERO / CAROUSEL ── */
.hero-section { position: relative; }

#heroCarousel,
.carousel-item {
  height: 100svh;
  min-height: 500px;
  max-height: 960px;
  background: var(--dark-bg);
}

.carousel-item-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* <picture>-обгортка з мобільним фото */
picture.carousel-item-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,0) 100%);
}
.carousel-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 4rem;
}

@media (max-width: 767px) {
  #heroCarousel,
  .carousel-item { height: 85svh; min-height: 480px; }
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.22;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}
.btn-hero {
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 50px;
  padding: 0 2rem 0 2.5rem;
  height: 72px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: none;
  min-width: 260px;
}
.btn-hero:hover { background: var(--orange-dark); color: #fff; }
.btn-hero svg { flex-shrink: 0; }

/* Custom carousel indicators (pill dots) */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.45);
  transition: all .3s;
  opacity: 1;
}
.carousel-indicators .active {
  background: var(--orange);
  width: 36px;
  border-radius: 6px;
}

/* Wave separator */
.hero-wave {
  height: 28px;
  background: #fff;
  margin-top: -2px;
}

/* ── SECTION SHARED ── */
.section-pad  { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1.15;
}

/* ── ABOUT ── */
.about-photo {
  width: 100%;
  max-width: 711px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 24px;
}
.about-text { font-size: 1.1rem; line-height: 1.65; }

/* ── STATS ── */
.stat-card {
  background: #F2F2F2;
  border: none !important;
  border-radius: 16px;
  padding: 2rem 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  /* анімація появи */
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease;
}
.stat-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.stat-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
.stat-card-label  { font-size: 1.3rem; font-weight: 800; }
.stat-card-desc   { font-size: 1rem; margin-top: .5rem; }
.stat-card-value  { font-size: 2.4rem; font-weight: 900; color: var(--orange); margin-top: 1.5rem; }

/* ── DIRECTOR ── */
.director-photo {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 24px;
  background: #e4e4e4;
}
.quote-icon { font-size: 5rem; font-family: Georgia, serif; color: var(--orange); line-height: .8; }
.director-quote { font-size: 1.1rem; line-height: 1.7; }
.director-name   { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; text-transform: uppercase; }
.director-role   { font-size: 1rem; }

/* ── PROJECTS ── */
.project-card {
  background: #F2F2F2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
}
.project-img-wrap {
  padding: 27px 0 27px 27px;
  height: 100%;
  box-sizing: border-box;
}
.project-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
@media (min-width: 992px) {
  .project-img { min-height: 420px; }
}
@media (max-width: 991px) {
  .project-img-wrap { padding: 27px 27px 0 27px; }
  .project-img { min-height: 260px; }
}
.project-title    { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 900; text-transform: uppercase; }
.project-subtitle { font-size: 1.1rem; font-weight: 700; }
.project-desc     { font-size: 1rem; line-height: 1.65; }
.progress-value   { font-size: 1.2rem; font-weight: 900; }
.progress { height: 9px; border-radius: 9px; }
.progress-bar     { background: var(--orange); border-radius: 9px; }

/* ── NEWS ── */
.news-section { background: #F2F2F2; }

/* Outer wrapper: nav buttons + viewport */
.news-slider-outer {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Viewport — clips the track */
.news-viewport {
  overflow: hidden;
  flex: 1;
}

/* Track — flex row, animates via transform */
.news-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

/* Each card takes exactly 1/3 of viewport minus gaps */
.news-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.news-headline { font-size: 1rem; font-weight: 700; line-height: 1.5; flex-grow: 1; }
.news-date     { font-size: .85rem; color: #888; }
.news-more-link { color: var(--orange); font-weight: 700; text-decoration: none; margin-top: 12px; display: inline-block; }
.news-more-link:hover { text-decoration: underline; }

/* Nav buttons */
.news-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: #fff;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.news-nav:hover { background: var(--orange); color: #fff; }
.news-nav:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* Dots */
.news-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.news-dot.active {
  background: var(--orange);
  transform: scale(1.25);
}

@media (max-width: 767px) {
  .news-card { flex: 0 0 100%; }
  .news-nav { display: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .news-card { flex: 0 0 calc((100% - 24px) / 2); }
}

/* ── PARTNERS marquee ── */
.partners {
  background: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
.partners-heading {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 3rem;
}
.partners-marquee-wrap {
  overflow: hidden;
  width: 100%;
  /* плавне затухання по краях */
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: partners-scroll 30s linear infinite;
}
.partners-marquee-wrap:hover .partners-marquee-track {
  animation-play-state: paused;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 220px;
  height: 120px;
  background: #F2F2F2;
  border-radius: 12px;
  padding: 20px 28px;
  transition: box-shadow .25s;
}
.partner-logo:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes partners-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FOOTER ── */
.site-footer { background: #fff; color: #555; }
.site-footer .footer-logo { height: 50px; filter: none; }
.site-footer h5 { color: #1a1a1a; font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer ul li a { color: #555; font-size: .95rem; text-decoration: none; }
.site-footer ul li a:hover { color: var(--orange); }
.site-footer .footer-contact p { font-size: .95rem; margin-bottom: .5rem; }
.site-footer .footer-contact a { color: #555; text-decoration: none; }
.site-footer .footer-contact a:hover { color: var(--orange); }
.site-footer .social-btn {
  color: var(--orange); font-weight: 700; font-size: .8rem;
  border: 1px solid var(--orange); border-radius: 4px;
  padding: 3px 8px; text-decoration: none;
}
.site-footer .social-btn:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid #e5e5e5; font-size: .85rem; color: #999; }

/* ── Language switcher (Polylang) ── */
.lang-switcher {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.lang-switcher li a {
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.lang-switcher li a:hover { color: var(--orange); }
.lang-switcher li.current-lang a {
  background: rgba(255,255,255,.18);
  color: var(--orange);
}
/* на оранжевому navbar (внутрішні сторінки) */
.site-navbar--solid .lang-switcher li a:hover { color: #fff; text-decoration: underline; }
.site-navbar--solid .lang-switcher li.current-lang a {
  background: rgba(255,255,255,.25);
  color: #fff;
}
