/* Ukrainian New Wave — one-page site
   Palette: Ukrainian blue & yellow, Canadian maple red accent */

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

:root {
  --blue: #0057b8;
  --blue-dark: #003d82;
  --navy: #0b1f3a;
  --yellow: #ffd500;
  --yellow-soft: #ffe566;
  --red: #d80621;
  --ink: #101828;
  --muted: #5a6472;
  --bg: #f7f8fa;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 10px 30px rgba(11, 31, 58, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============= HEADER ============= */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(11, 31, 58, 0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--yellow-soft);
  box-shadow: 0 6px 18px rgba(255, 213, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.3);
}

.nav-menu .btn-support {
  background: var(--yellow);
  color: var(--navy);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}

.nav-menu .btn-support:hover {
  background: var(--yellow-soft);
  color: var(--navy);
}

.lang-toggle {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============= HERO ============= */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(0, 40, 100, 0.78), rgba(0, 74, 158, 0.70)),
    url('/img/hero-flags.svg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 2.25rem 1.5rem 3.25rem;
}

.hero-inner {
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  opacity: 0.92;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

/* ============= SECTIONS ============= */
.section {
  padding: 5rem 0;
}

.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.eyebrow-dark {
  color: var(--navy);
  opacity: 0.7;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--navy);
}

/* ============= SPONSORS (running banner) ============= */
.section-sponsors {
  background: var(--white);
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.06);
}

.sponsors-eyebrow {
  text-align: center;
  margin-bottom: 1.25rem;
}

.sponsors-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sponsors-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
  justify-content: center;
}

/* Only scroll when the logos actually overflow the viewport */
.sponsors-marquee.is-scrolling .sponsors-track {
  width: max-content;
  justify-content: flex-start;
  animation: sponsor-scroll 32s linear infinite;
}

.sponsors-marquee.is-scrolling:hover .sponsors-track {
  animation-play-state: paused;
}

@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.sponsor-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}

.sponsor-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.sponsor-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-marquee.is-scrolling .sponsors-track {
    animation: none;
  }
}

/* ============= NEWS ============= */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Photo carousel on top of each news card */
.carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f5;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.carousel-btn:hover {
  background: var(--yellow);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--yellow);
  transform: scale(1.25);
}

.news-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.news-card-excerpt,
.news-card-full {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.news-card-full {
  display: none;
}

.news-card-full p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.news-card.expanded .news-card-full {
  display: block;
}

.news-card.expanded .news-card-excerpt {
  font-weight: 600;
  color: var(--ink);
}

.read-more {
  align-self: flex-start;
  margin-top: auto;
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.read-more:hover {
  text-decoration: underline;
}

/* Compact news rows (date + title only, shown after the first 6 articles) */
.news-row {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.news-row-head .news-card-date {
  margin: 0;
  flex-shrink: 0;
  min-width: 110px;
}

.news-row-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
  margin: 0;
}

.news-row-chevron {
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.2s;
}

.news-row.expanded .news-row-chevron {
  transform: rotate(90deg);
}

.news-row .news-card-full {
  padding: 0 1.25rem 1.1rem;
}

.news-row.expanded .news-card-full {
  display: block;
}

.list-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

.btn-more {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 0.7rem 1.8rem;
}

.btn-more:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-less {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem;
  text-decoration: underline;
}

.btn-less:hover {
  color: var(--blue);
}

/* ============= EVENTS ============= */
.section-events {
  background: var(--white);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid rgba(11, 31, 58, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.event-badge {
  flex-shrink: 0;
  width: 64px;
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 4px solid var(--yellow);
}

.event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.event-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.event-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.event-info p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 0.4rem;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============= SUPPORT ============= */
.section-support {
  background: var(--yellow);
  color: var(--navy);
}

.support-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-support h2 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.support-text > p {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  max-width: 480px;
}

.support-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-points li {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.support-points strong {
  display: block;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.support-points span {
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ============= ABOUT ============= */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-text a {
  color: var(--blue);
  font-weight: 600;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

.person-card img,
.person-avatar-ph {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
  flex-shrink: 0;
}

.person-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.person-card figcaption strong {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}

.person-card figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.person-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.person-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--blue);
  transition: background 0.2s, color 0.2s;
}

.person-social svg {
  width: 17px;
  height: 17px;
}

.person-social:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============= FOOTER ============= */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.footer-flags {
  font-size: 1.3rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--yellow);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
  .support-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-burger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 12px 20px rgba(11, 31, 58, 0.12);
  }

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

  .hero {
    padding: 1.75rem 1.5rem 2.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .event-item {
    padding: 1rem 1.1rem;
    gap: 1rem;
  }
}
