/* Fonts, self-hosted (Latin only). */
@font-face { font-family: "Bebas Neue"; src: url(bebas-neue.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url(kanit-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url(roboto.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url(roboto-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }
/* Headings: WordPress used "Noto Sans Old Italic", whose Latin letters are plain Noto Sans. */
@font-face { font-family: "Noto Sans Heading"; src: url(noto-sans.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --green: #3b9143;
  --dark-green: #062008;
  --cream: #f3f3c5;
  --frame: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: var(--frame);
  background: #fff;
  color: #000;
  font: 400 16px/27px "Roboto", sans-serif;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h2 {
  margin: 0;
  font: 600 36px/1 "Noto Sans Heading", sans-serif;
  text-transform: uppercase;
}

/* ---- Menu ---- */
.top {
  position: absolute;
  top: var(--frame);
  left: var(--frame);
  right: var(--frame);
  z-index: 10;
  height: 100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top .logo img { width: 75px; height: 75px; }
.nav { display: flex; height: 100%; }
.nav a {
  display: flex;
  align-items: center;
  padding: 0 29px;
  font: 700 17px/1.294 "Bebas Neue", sans-serif;
  color: #000;
}
.nav a:last-child { padding-right: 0; }

.sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: 70px;
  padding: 0 40px 0 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #000;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.sticky.on { transform: none; }
.sticky .logo img { width: 56px; height: 56px; }

/* ---- Logo video ---- */
.hero video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f6f7f9;
}

/* ---- About ---- */
.about {
  scroll-margin-top: 70px;
  margin: var(--frame) 0;
  padding: 25px 25px 25px 0;
  background: var(--dark-green);
  display: flex;
  align-items: center;
}
.about-text, .about-video { flex: 1 1 50%; }
.about-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-text h2, .about-text p { width: 67%; }
.about-text h2 { color: var(--cream); text-align: right; margin-bottom: 22px; }
.about-text p {
  margin: 0 0 9px;
  color: #fff;
  font-size: 15px;
  text-align: justify;
}
.about-video { padding-right: 0; padding-left: 22px; }
.about-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---- Coming soon ---- */
.coming-soon {
  position: relative;
  min-height: 474px;
  margin: var(--frame) 0;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--dark-green) url(/images/coming-soon.webp) bottom center / cover no-repeat;
}
.coming-soon::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.coming-soon > * { position: relative; }
.coming-soon p { margin: 0; font-weight: 600; text-transform: uppercase; }

/* ---- Partners ---- */
.partners { margin: var(--frame) 0; padding: 25px 0; text-align: center; }
.partners h2 { color: var(--green); padding-bottom: 45px; }
.marquee { overflow: hidden; }
.track { display: flex; width: max-content; animation: scroll 28s linear infinite; }
.group { display: flex; }
.group img {
  width: calc((100vw - 2 * var(--frame) - 60px) / 3);
  height: auto;
  margin-right: 30px;
  transition: opacity .3s;
}
.group img:hover { opacity: .6; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

/* ---- Footer ---- */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 25px 0 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer h3 {
  margin: 25px 0;
  font: 700 25px/28px "Kanit", sans-serif;
  text-transform: uppercase;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { font: 400 16px/36px "Roboto Mono", monospace; }
.footer li a:hover { color: var(--green); }
/* The FLUS logo is white; shown dark so it can be seen on the white footer. */
.col-flus { grid-column: 4; display: flex; justify-content: center; align-items: center; padding-top: 30px; }
.col-flus img { width: 143px; height: auto; filter: invert(1); }

/* ---- Back to top ---- */
.to-top {
  position: fixed;
  right: 40px;
  bottom: 30px;
  z-index: 30;
  width: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.to-top.on { opacity: 1; pointer-events: auto; }
.to-top svg { width: 30px; height: 43px; fill: #000; filter: drop-shadow(3px 3px 0 #fff) drop-shadow(1px 1px 0 #000); }

/* ---- Tablets and phones ---- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); padding: 25px 30px 50px; }
  .col-flus { grid-column: 2; }
}
@media (max-width: 767px) {
  :root { --frame: 0px; }
  .top { position: static; height: 70px; padding: 0 20px; }
  .top .logo img { width: 50px; height: 50px; }
  .nav a { padding: 0 0 0 24px; font-size: 18px; }
  .sticky { padding: 0 20px; height: 60px; }
  .sticky .logo img { width: 44px; height: 44px; }
  h2 { font-size: 30px; }
  .about { flex-direction: column; padding: 40px 0 25px; margin: 22px 0; }
  .about-text h2, .about-text p { width: auto; margin-left: 25px; margin-right: 25px; }
  .about-text h2 { text-align: center; }
  .about-video { padding: 22px 0 0; width: 100%; }
  .coming-soon { min-height: 360px; margin: 22px 0; }
  .group img { width: calc((100vw - 60px) / 2.4); }
  .footer-inner { grid-template-columns: 1fr; padding: 10px 25px 40px; gap: 10px; }
  .col-flus { grid-column: 1; justify-content: flex-start; }
  .to-top { right: 20px; bottom: 20px; }
}
