:root {
  --navy: #0f2238;
  --navy-dark: #081523;
  --red: #c8202f;
  --red-dark: #a01824;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--navy-dark) url("background.jpg") center / cover no-repeat fixed;
  line-height: 1.55;
}

/* Darken the photo so text stays readable */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 21, 35, 0.55) 0%, rgba(8, 21, 35, 0.85) 100%);
  z-index: -1;
}

a { color: #fff; }
a:hover { color: #ffd6d9; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 24px;
}

.logo { display: block; width: 200px; max-width: 60vw; height: auto; }

main {
  width: 100%;
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  flex: 1;
}

h1 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: var(--red);
  margin: 18px auto 0;
}

.lead { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 28px; }

.player {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.player-help { font-size: 0.9rem; color: var(--text-muted); margin: 12px 0 0; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 999px;
}
.btn:hover { background: var(--red-dark); color: #fff; }

footer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
footer a { color: var(--text-muted); }

/* Legal page */
.content {
  text-align: left;
  background: rgba(8, 21, 35, 0.75);
  border-radius: 12px;
  padding: 24px;
}
.content h2 { font-size: 1.1rem; text-transform: uppercase; margin: 28px 0 8px; }
.content ul { padding-left: 1.2em; }
.back { display: inline-block; margin-top: 24px; }

/* Homepage project teaser */
.teaser {
  display: block;
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: rgba(8, 21, 35, 0.75);
  text-align: left;
  text-decoration: none;
}
.teaser strong { display: block; text-transform: uppercase; letter-spacing: 0.03em; }
.teaser span { color: var(--text-muted); }
.teaser:hover { background: rgba(8, 21, 35, 0.9); color: #fff; }

/* Interreg page */
main.wide { max-width: 900px; }

.eyebrow {
  margin: 0 0 4px;
  color: #ff8a93;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.partner-logos img { display: block; height: 64px; width: auto; max-width: 100%; }

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-transform: none;
  font-size: 0.95rem;
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
}
.btn-instagram:hover { background: linear-gradient(45deg, #d97f20, #b81f37 50%, #9a1370); }

.content .intro { font-size: 1.1rem; }
.content h3 { margin: 0 0 6px; font-size: 1rem; }
.content h3 a { text-decoration: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0 16px;
}
.stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 900; color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 16px;
}
.card p { margin: 0 0 8px; color: var(--text-muted); }
.card ul { margin: 0; color: var(--text-muted); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6em; position: relative; margin-bottom: 6px; }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: #ff8a93; }

@media (max-width: 720px) {
  .cards, .cards-2, .stats { grid-template-columns: 1fr; }
  .partner-logos img { height: 48px; }
}

@media (max-width: 480px) {
  .player { height: 380px; }
  .content { padding: 18px; }
}
