/* ARCUBED — site styles
   Recreates the original Rocketspark theme. Like the original, sizes are in rem and
   the root font size steps with the window width (13px / 16px / 19px), so text,
   spacing and content width grow together. Each <section> sets its own spacing
   through CSS variables (copied from the original design):
     --pt/--pb    padding top/bottom          --cpx/--cpy  column padding
     --mt/--mb    margin top/bottom           --fw         column width (of 24)
     --mpt/--mpb/--mmb/--mcpx/--mcpy/--mh1/--mh2   the same for phones            */
:root {
  --green: #11ae68;
  --green-hover: #00904a;
  --green-deep: #0a5927;
  --mint: #e9ffef;
  --text: #333333;
  --font: "Poppins", Arial, sans-serif;
  --cw: 980px;   /* default content width */
  --ow: 1080px;  /* "oversize" content width */
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (min-width: 740px) and (max-width: 1079.98px) { html { font-size: 13px; } :root { --cw: 740px; --ow: 740px; } }
@media (min-width: 1460px) { html { font-size: 19px; } :root { --cw: 1170px; --ow: 1300px; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font); font-size: .8125rem; line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--green-deep); color: #fff; padding: .6em 1em; }
.skip-link:focus { left: 1rem; top: 1rem; }

h1, h2 { margin: 0; color: var(--green); }
h1 { font-size: 2.125rem; font-weight: 500; line-height: 1.4; }
h2 { font-size: 1.8125rem; font-weight: 600; line-height: 1.3; }
h1 b, h2 b { font-weight: 700; }
.dark { color: #000; }
.center { text-align: center; }
p { margin: 0; }
strong { font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: var(--green); position: relative; z-index: 20; }
.header-inner { position: relative; width: var(--ow); max-width: 100%; margin: 0 auto; padding: .9375rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 60px; width: auto; }
/* menu is centred in the header, as in the original */
.site-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.28rem; }
.site-nav a { display: block; line-height: 22px; color: #fff; text-decoration: none; font-weight: 600; font-size: .8125rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-deep); }
.social { display: flex; gap: 8px; }
.social a { width: 33px; height: 33px; border-radius: 3px; background: #fff; color: #222; display: grid; place-items: center; transition: opacity .2s; }
.social a:hover { opacity: .8; }
.social svg { width: 13px; height: 13px; fill: currentColor; }
.social.on-light a { background: var(--green); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid #fff; color: #fff; border-radius: 4px; padding: 4px 10px; font: 600 13px var(--font); cursor: pointer; }

/* ---------- Sections ("stacks") ---------- */
.stack {
  position: relative; background-repeat: no-repeat; background-size: cover; background-position: center center;
  padding: var(--pt, 0) 0 var(--pb, 0); margin: var(--mt, 0) 0 var(--mb, 0);
}
.stack.mint { background-color: var(--mint); }
.stack.bg-bottom { background-position: center bottom; }
.stack.bg-top { background-position: center top; }
.stack-inner { width: var(--cw); max-width: 100%; margin: 0 auto; }
.stack.o .stack-inner { width: var(--ow); }
.cc { display: flex; justify-content: center; align-items: flex-start; }
.stack.v-middle .cc { align-items: center; }
.stack.v-bottom .cc { align-items: flex-end; }
.col { flex: 0 1 calc(100% * var(--fw, 24) / 24); min-width: 0; padding: var(--cpy, .5rem) var(--cpx, 1rem); }
.block + .block { margin-top: 2rem; }
.tb h1 + .txt, .tb h2 + .txt { margin-top: .8125rem; }
.txt p { margin-bottom: 1.25rem; }
.txt p:has(+ ul) { margin-bottom: .625rem; }
.txt ul { margin: 0 0 .625rem; padding-left: 1.875rem; }
.txt > p:last-child { margin-bottom: 0; }

/* Image frames: the original crops each picture to a fixed shape */
.frame { position: relative; overflow: hidden; aspect-ratio: var(--ar); width: 100%; }
.frame img { position: absolute; top: 0; left: 0; max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 600 .875rem/1 var(--font); letter-spacing: .03em; padding: .7em .95em; border-radius: 4px; transition: background .2s;
}
.btn:hover { background: var(--green-hover); color: #fff; }
.block.btn-block.center { text-align: center; }

/* ---------- Hero with background video ---------- */
.hero { background: #000; overflow: hidden; }
.hero-media { position: absolute; inset: 0; container-type: size; background: url("../img/hero-poster.jpg") center / cover no-repeat; }
/* Cover the hero, plus 200px extra height so YouTube's title bar and
   "More videos" strip are cropped off. */
.hero-media iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; transform: translate(-50%, -50%);
  height: calc(max(100cqh, 56.25cqw) + 200px); width: calc((max(100cqh, 56.25cqw) + 200px) * 1.7778);
}
.hero .stack-inner { position: relative; }

/* ---------- Lottie animations, video ---------- */
.anim { width: 300px; height: 300px; max-width: 100%; background: var(--mint); }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Awards / media ---------- */
.fixed-img { margin: 0 auto; }
.media-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5625rem; grid-auto-rows: 9.375rem; align-items: start; }
.media-logos img { width: 100%; aspect-ratio: 2.5; object-fit: contain; }

/* ---------- Team ---------- */
.quals { color: var(--text); font-size: 20px; font-weight: 500; }
.member-text .txt > p:last-child { margin-bottom: 1.25rem; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: .875rem; margin-top: .625rem; }
.form label { display: block; font-size: .9375rem; line-height: 1; margin-bottom: .3125rem; }
.form input, .form textarea { display: block; width: 100%; font: .875rem var(--font); color: var(--text); background: #fff; border: 1px solid #16c476; border-radius: 2px; }
.form input { height: 2.5rem; padding: 0 .625rem; }
.form textarea { height: 6.25rem; padding: .625rem; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; margin-top: .0625rem; }
.form-status:empty { display: none; }
.social.on-light { gap: 5px; }
.social.on-light a { width: 33px; height: 33px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer .stack { background: var(--green); color: #fff; }
.site-footer .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .social { justify-content: center; }
.footer-bottom { background: var(--green); color: #fff; font-size: 12px; line-height: 14px; padding: 1.25rem 0 1.75rem; }
.footer-bottom .stack-inner { width: var(--ow); padding: 0 3.125rem; }

/* ---------- Phones ---------- */
@media (max-width: 739.98px) {
  body { font-size: 1rem; }
  .header-inner { padding: 5vw; }
  .nav-toggle { display: block; }
  .header-social { display: none; }
  .site-nav { display: none; left: 0; right: 0; top: 100%; transform: none; background: var(--green); padding: 8px 5vw 16px; margin: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { font-size: 15px; line-height: 44px; }

  .stack { padding: var(--mpt, .5rem) 0 var(--mpb, .5rem); margin: 0 0 var(--mmb, 0); }
  .stack-inner, .stack.o .stack-inner { width: 100%; }
  .cc { flex-direction: column; align-items: stretch !important; }
  .stack.rev .cc { flex-direction: column-reverse; }
  .col { flex: 0 0 auto; width: 100%; padding: var(--mcpy, 24px) var(--mcpx, 24px); }
  h1 { font-size: var(--mh1, 2.125rem); }
  h2 { font-size: var(--mh2, 1.8125rem); }
  .anim { margin: 0 auto; }
  .media-logos { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 43px; }
  .media-logos a { height: 150px; }
  .media-logos img { max-width: 224px; }
  .footer-bottom .stack-inner { padding: 0 24px; text-align: center; }
  .site-footer .footer-links { text-align: center; font-size: 13px; line-height: 24.7px; }
}
