/* EUROWEEK — css/style.css */
:root {
  --primary: #003399;
  --primary-dark: #002a80;
  --primary-ink: #041f4e;
  --ink: #262b2e;
  --body: #565b5f;
  --gold: #d9a441;
  --gold-dark: #b98427;
  --bg-soft: #f5f7fa;
  --line: #e3e7ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(4, 31, 78, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  color: var(--body);
  background: #fff;
  font-size: 1.02rem;
  line-height: 1.75;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar a { color: rgba(255, 255, 255, 0.92); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 1.1rem; }
.topbar svg { flex-shrink: 0; opacity: 0.7; }

/* ---------- Navbar ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(4, 31, 78, 0.07);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar { padding: 0.65rem 0; }
.navbar-brand { display: flex; align-items: center; min-width: 0; }
.navbar-brand img { height: 44px; width: auto; }
.navbar .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
}
.navbar .nav-link:hover { color: var(--primary); background: var(--bg-soft); }
.navbar .nav-link.active { color: var(--primary); }
.navbar-toggler { border: 1px solid var(--line); flex-shrink: 0; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.04em;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(4, 31, 78, 0.78) 0%, rgba(0, 51, 153, 0.55) 55%, rgba(4, 31, 78, 0.65) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; padding: 0.7rem 1.7rem; font-weight: 700; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2b1f04; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline-light { border-width: 2px; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); border-width: 2px; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
.section .lead-in { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(4, 31, 78, 0.13); }
.card .card-body { padding: 1.6rem; }
.card h3 { font-size: 1.25rem; }
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 51, 153, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.gold { background: rgba(217, 164, 65, 0.15); color: var(--gold-dark); }

/* ---------- Facts strip ---------- */
.facts { background: var(--primary); color: #fff; padding: 3rem 0; }
.facts .fact-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--gold);
  font-weight: 600;
  line-height: 1.1;
}
.facts .fact-label { color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  padding: 6.5rem 0 4.5rem;
  color: #fff;
  overflow: hidden;
  background: var(--primary-ink);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/euroweek-page-title.webp') center/cover no-repeat;
  opacity: 0.35;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 31, 78, 0.85), rgba(0, 51, 153, 0.6));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6rem; }
.page-banner p { color: rgba(255, 255, 255, 0.88); max-width: 760px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--line);
  border-radius: 3px;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--gold);
}
.timeline-item .year {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.7 5.3a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4 0l-2.5-2.5a1 1 0 1 1 1.4-1.4L7 9.6l4.3-4.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.7 5.3a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4 0l-2.5-2.5a1 1 0 1 1 1.4-1.4L7 9.6l4.3-4.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tag-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Values ---------- */
.value-chip {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.3rem;
  height: 100%;
  box-shadow: var(--shadow);
}
.value-chip .letter {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-dark);
}

/* ---------- Press ---------- */
.press-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.press-item:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }
.press-item img { height: 38px; width: auto; flex-shrink: 0; }
.press-item span { font-weight: 600; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-ink), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid #cfd6e0;
  padding: 0.7rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 51, 153, 0.15);
}
.form-label { font-weight: 700; color: var(--ink); font-size: 0.92rem; }

/* ---------- Contact / info cards ---------- */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.info-card p, .info-card a { margin-bottom: 0.3rem; word-break: break-word; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1c2126; color: rgba(255, 255, 255, 0.72); padding: 3.5rem 0 0; font-size: 0.94rem; }
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-links { list-style: none; padding: 0; }
.site-footer .footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  font-size: 0.85rem;
}
.footer-brand { font-family: 'Source Serif 4', Georgia, serif; color: #fff; font-size: 1.4rem; font-weight: 600; }

/* ---------- Focus & a11y ---------- */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { height: auto; min-height: 520px; padding: 5rem 0; }
  .navbar-brand img { height: 38px; }
}
@media (max-width: 575px) {
  .topbar .tb-hide-sm { display: none; }
  .section { padding: 3rem 0; }
  .cta-band { padding: 2rem 1.4rem; }
  .press-item { flex-direction: column; align-items: flex-start; }
}
