/* Drone Racing Belgium — site styles.
   Colours and sizes match the old WordPress theme (Gutenify Virtual Reality). */

@font-face {
  font-family: "Sen";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/sen-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sen";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/sen-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --fg: #fff;
  --primary: #ffac44;
  --secondary: #f78550;
  --muted: #b5b5b5;
  --card: #0d0d0d;
  --card-border: #2a2a2a;
  --band: #141414;
  --content: 900px;
  --wide: 1320px;
  --gutter: max(16px, 5%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Sen", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 { line-height: 1.38; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: 1.92rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 260px;
}
.brand img { width: 88px; height: auto; flex: none; }

.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.lang-switch {
  text-decoration: none;
  text-transform: uppercase;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
}
.lang-switch:hover { background: var(--primary); color: #000; }
/* The switch comes after the menu on desktop, next to the menu button on phones. */
.site-nav { order: 1; }
.lang-switch { order: 2; }
.menu-toggle { order: 3; }
.site-nav a { text-decoration: none; font-size: 1rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--fg); margin: 6px 0; }

@media (max-width: 780px) {
  .brand { font-size: 1.15rem; }
  .brand img { width: 64px; }
  .menu-toggle { display: block; }
  .lang-switch { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #000;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 8px var(--gutter);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1.1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 415px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 29%, rgba(0, 0, 0, .06) 100%);
  opacity: .9;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero h1 { margin: 0; }
.hero-slim { min-height: 168px; }

/* ---------- Page layout ---------- */

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 5vh 10px;
}

.section-title { font-size: 2.6rem; font-weight: 400; }
.section-title.upper { text-transform: uppercase; font-weight: 700; font-size: 1.92rem; letter-spacing: .02em; }
.section-title.big { font-size: 48px; }

.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 2.25rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: .67rem;
  margin: 2.25rem 0;
}
.split img { border-radius: 30px; width: 100%; }
.split-title { text-transform: uppercase; font-weight: 700; font-size: 1.92rem; line-height: 1.8; margin: 0; }

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .section-title.big { font-size: 2.4rem; }
}

/* ---------- Event cards (home page) ---------- */

.event-card {
  display: flex;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.event-when { flex: 0 0 15%; min-width: 120px; text-align: center; }
.event-when img { width: 100px; aspect-ratio: 1; object-fit: cover; border-radius: 15px; }
.event-dates { font-size: 1.5rem; line-height: 1.5; margin: .5rem 0 .25rem; }
.event-location { color: var(--primary); font-weight: 600; font-size: .9rem; margin: 0; }
.event-info { flex: 1; min-width: 0; font-size: .9rem; }
.event-title {
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.6;
  margin: 0 0 .4rem;
}
.event-title a { text-decoration: none; }
.event-byline { font-size: .85rem; }

@media (max-width: 640px) {
  .event-card { flex-direction: column; gap: .5rem; }
  .event-when { text-align: left; display: grid; grid-template-columns: 80px 1fr; column-gap: 1rem; align-items: center; }
  .event-when img { width: 80px; grid-row: span 2; }
  .event-dates { font-size: 1.2rem; margin: 0; }
  .event-title { font-size: 1.25rem; }
}

/* ---------- Logo strips ---------- */

.logos-section { text-align: center; }

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
  margin: 3rem 0;
}
.logos img { max-width: 100%; }
.logo-caption { margin-top: -2rem; }

/* ---------- Content pages and event pages ---------- */

.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: flow-root; /* keep floated content (e.g. the pilot list) inside the page */
}
.event-page { max-width: calc(var(--wide) + 2 * 5%); padding-top: 3rem; }
.page-title { margin-bottom: 2rem; }

/* WordPress block markup kept in the converted content */
.page figure { margin: 0 0 1.5rem; }
.page table { border-collapse: collapse; }
.page td { padding: .3rem 1.5rem; border: 1px solid var(--card-border); }
.page ul { padding-left: 1.4rem; }
.page mark { background: none; color: inherit; }

.wp-block-columns { display: flex; gap: 2em; margin-bottom: 1.75em; align-items: flex-start; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns + .wp-block-columns { margin-top: 0; }
.page > .wp-block-group > .wp-block-group > .wp-block-columns { align-items: center; margin-bottom: 5rem; }

.wp-block-group-is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.wp-block-group-is-layout-flex > * { margin: 0; }

.wp-block-media-text { display: grid; grid-template-columns: 50% auto; align-items: center; gap: 1rem; }
.wp-block-media-text figure { margin: 0; }

.wp-block-image img { display: block; }
.wp-block-image.aligncenter img { margin: 0 auto; }
.alignleft { float: left; margin-right: 2rem; }

.wp-block-embed { margin: 0 0 3rem; }
.wp-block-embed > div { position: relative; aspect-ratio: 16 / 9; }
.wp-block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-block-embed figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .5rem; }

.has-text-align-center { text-align: center; }

@media (max-width: 780px) {
  .wp-block-columns { flex-direction: column; gap: 1rem; }
  .wp-block-column { flex-basis: auto !important; width: 100%; }
  .wp-block-media-text { grid-template-columns: 1fr !important; }
  .alignleft { float: none; margin-right: 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--wide);
  margin: 3rem auto 0;
  padding: 0 var(--gutter);
  font-size: .9rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--card-border);
}
.site-footer .brand { font-size: 1.2rem; max-width: none; }
.site-footer .brand img { width: 56px; }
.footer-actions { display: flex; align-items: center; gap: 1.75rem; }

.social { display: flex; gap: .75rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  transition: border-color .15s, color .15s;
}
.social a:hover { border-color: var(--primary); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: .8rem;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: .6rem 1.4rem;
}
.button:hover { background: var(--secondary); color: #fff; }

@media (max-width: 600px) {
  .footer-main { flex-direction: column; align-items: flex-start; }
}

/* Black-and-white photos (the "duotone" filter in WordPress) */
.grayscale img { filter: grayscale(1) contrast(1.05); }

/* ---------- Event pages ---------- */

.event-hero { min-height: 460px; }
.hero-byline { color: var(--muted); margin: .5rem 0 0; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 1rem 0 1.5rem; }
.hero-meta li { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; }
.hero-meta li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero h1 { max-width: 760px; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; }

.register { font-size: 1.05rem; padding: .75rem 1.75rem; border-radius: 6px; }
.register-closed {
  display: inline-block;
  border: 1px solid var(--card-border);
  color: var(--muted);
  padding: .6rem 1.25rem;
  border-radius: 6px;
  font-size: .9rem;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3.5rem;
  align-items: start;
}
.event-aside { position: sticky; top: 1.5rem; display: grid; gap: 1.25rem; }
.event-aside .register, .event-aside .register-closed { text-align: center; }

.facts {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}
.facts dt { color: var(--primary); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0 0 .9rem; }
.facts dd:last-child { margin-bottom: 0; }

.flyer img { display: block; width: 100%; border-radius: 12px; }

.event-main { font-size: 1rem; }
.event-main .lead { font-size: 1.15rem; line-height: 1.7; }
.event-main h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.event-main h2:first-child { margin-top: 0; }

.checklist { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding: .55rem 0 .55rem 1.9rem; border-bottom: 1px solid #1c1c1c; }
.checklist li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.05em;
  width: .7em;
  height: .35em;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.highlight {
  border-left: 3px solid var(--primary);
  background: var(--card);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.schedule > div { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 1.25rem 1.5rem; }
.schedule h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.schedule dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.schedule dt { color: var(--primary); font-variant-numeric: tabular-nums; font-weight: 600; }
.schedule dd { margin: 0; }

.event-section { margin-top: 4.5rem; }
.event-section h2 { font-size: 1.6rem; display: flex; align-items: baseline; gap: .75rem; }
.count { font-size: .95rem; font-weight: 400; color: var(--muted); }

.pilots {
  list-style: none;
  counter-reset: pilot;
  padding: 0 !important;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  border-top: 1px solid var(--card-border);
  border-left: 1px solid var(--card-border);
}
.pilots li {
  counter-increment: pilot;
  padding: .55rem .9rem;
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pilots li::before { content: counter(pilot); color: var(--muted); font-size: .75rem; display: inline-block; min-width: 1.6rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }

.partner-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.partner-tiles > * {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  height: 100px;
  padding: 1rem 1.25rem;
}
.partner-tiles img { max-height: 100%; max-width: 100%; object-fit: contain; }
.partner-tiles > .dark { background: #000; border: 1px solid var(--card-border); }

@media (max-width: 900px) {
  .event-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .event-aside { position: static; grid-template-columns: 1fr; max-width: 480px; }
  .event-hero { min-height: 380px; }
}

/* Home page logo tiles: centred rows of equal tiles */
.logos-section .partner-tiles { display: flex; flex-wrap: wrap; justify-content: center; margin: 2.5rem 0; }
.logos-section .partner-tiles > * { width: 200px; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: .75rem; align-items: end; }
.podium > div {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px 14px 0 0;
  text-align: center;
  padding: 1rem .5rem;
}
.podium span { display: block; color: var(--muted); font-size: .85rem; }
.podium strong { font-size: 1.5rem; }
.podium .p1 { padding-top: 2.5rem; border-color: var(--primary); }
.podium .p1 strong { color: var(--primary); }
.podium .p2 { padding-top: 1.75rem; }

@media (max-width: 480px) {
  .pilots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos-section .partner-tiles > * { width: calc(50% - .5rem); }
}
