/* ==========================================================================
   Wave Mastermind — static rebuild
   Colours, type scale and layout metrics mirror the original page.
   ========================================================================== */

:root {
  --blue: #0099d1;
  --charcoal: #2e2d2c;
  --white: #ffffff;
  --gray: #cbd5e0;
  --black: #000000;
  --link: #188bf6;

  --headline-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --content-font: 'Varta', 'Helvetica Neue', Arial, sans-serif;

  --text-color: #000000;
  --container: 1170px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--white);
  color: var(--text-color);
  font-family: var(--content-font);
  font-size: 18px;
  line-height: 1.3em;
  overflow-x: hidden;
}

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

a { color: var(--link); }

h1, h2, h3, h4 {
  font-family: var(--headline-font);
  font-weight: 400;
  line-height: 1.3em;
  margin: 0;
}

h1 { font-size: 32px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout primitives — section > container > row > col
   -------------------------------------------------------------------------- */

.sec {
  position: relative;
  padding: 20px 0;
}

.sec-flush { padding: 0; }

.sec__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sec__bg--cover {
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.sec__bg--stretch {
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding: 15px 0;
}

.row--top { align-items: flex-start; }
.row--flush { padding: 0; }

.col {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.col--quarter { flex: 1 1 25%; }

/* Text blocks ------------------------------------------------------------ */

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

.copy {
  font-family: var(--content-font);
  font-size: 18px;
  line-height: 1.3em;
}

.copy strong { font-weight: 700; }

.copy--20 { font-size: 20px; }
.copy--24 { font-size: 24px; }
.copy--14 { font-size: 14px; }

.subhead {
  font-family: var(--headline-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3em;
}

.subhead--23 { font-size: 23px; }

.on-dark,
.on-dark h1,
.on-dark h2,
.on-dark p { color: var(--white); }

/* Fallback fills so white hero copy stays legible before the background
   image has finished loading. */
.sec__bg--fill-teal { background-color: #1b4b5e; }
.sec__bg--fill-gray { background-color: #454545; }

/* Section backgrounds. The plain url() line is the fallback; browsers that
   understand image-set() take the WebP from the second declaration. */
.bg-hero {
  background-image: url('/assets/images/bg-hero.jpg');
  background-image: image-set(url('/assets/images/bg-hero.webp') type('image/webp'),
                              url('/assets/images/bg-hero.jpg') type('image/jpeg'));
}

.bg-what-is {
  background-image: url('/assets/images/bg-what-is.jpg');
  background-image: image-set(url('/assets/images/bg-what-is.webp') type('image/webp'),
                              url('/assets/images/bg-what-is.jpg') type('image/jpeg'));
}

.bg-elevate {
  background-image: url('/assets/images/bg-elevate.jpg');
  background-image: image-set(url('/assets/images/bg-elevate.webp') type('image/webp'),
                              url('/assets/images/bg-elevate.jpg') type('image/jpeg'));
}

.bg-what-you-get {
  background-image: url('/assets/images/bg-what-you-get.jpg');
  background-image: image-set(url('/assets/images/bg-what-you-get.webp') type('image/webp'),
                              url('/assets/images/bg-what-you-get.jpg') type('image/jpeg'));
}

/* Spacer that reproduces the leading <br> the original uses above body copy */
.copy-lead { margin-top: 1.3em; }

/* Buttons ---------------------------------------------------------------- */

.btn-wrap {
  margin: 20px 0 0;
  text-align: center;
}

.btn {
  display: inline-block;
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3em;
  color: var(--white);
  background-color: var(--blue);
  text-decoration: none;
  padding: 10px 20px 15px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: #007fae;
  color: var(--white);
}

.btn:active { transform: translateY(1px); }

/* Images ----------------------------------------------------------------- */

.img-block { text-align: center; }
.img-block img { display: inline-block; }

.logo-header { width: 300px; }
.logo-footer { width: 200px; }
.img-400 { width: 400px; }

/* Video ------------------------------------------------------------------ */

.video-block {
  padding: 10px;
  width: 100%;
}

.video-block video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

/* FAQ -------------------------------------------------------------------- */

.faq { width: 100%; }

.faq__item {
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: var(--white);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  margin: 0;
  padding: 15px;
  border: 0;
  background-color: var(--white);
  color: #111827;
  font-family: var(--headline-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.faq__item[open] .faq__q { color: #3b82f6; }

.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }

.faq__icon {
  flex: none;
  width: 1em;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.faq__icon::before { content: '+'; }
.faq__item[open] .faq__icon::before { content: '\2212'; }

.faq__a {
  padding: 0 15px 15px;
  font-family: var(--content-font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Contact form (/join)
   -------------------------------------------------------------------------- */

/* The card sits inside an .on-dark column, so pull its own colours back. */
.on-dark .form-card,
.on-dark .form-card h2,
.on-dark .form-card p { color: var(--black); }

.on-dark .form-card label { color: var(--charcoal); }
.on-dark .form-card .form-note { color: #4a5568; }
.on-dark .form-card .form-status,
.on-dark .form-card .field-error { color: #c0392b; }
.on-dark .form-card .thanks__mark { color: var(--white); }
.on-dark .form-card .btn { color: var(--white); }

.form-card {
  width: 100%;
  max-width: 720px;
  margin: 10px auto 0;
  padding: 28px;
  background: var(--white);
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--headline-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--content-font);
  font-size: 17px;
  line-height: 1.3;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray);
  border-radius: 6px;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 209, .18);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  color: #c0392b;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #c0392b; }

.field.is-invalid .field-error { display: block; }

/* honeypot */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #4a5568;
  text-align: center;
}

.form-status {
  margin-top: 14px;
  font-size: 16px;
  text-align: center;
  color: #c0392b;
}

.form-status:empty { margin-top: 0; }

.thanks { text-align: center; padding: 20px 0; }

.thanks__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 34px;
  line-height: 64px;
  font-family: var(--headline-font);
}

.thanks h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.thanks p { font-size: 18px; }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .container { max-width: 100%; }
}

@media (max-width: 767px) {
  .row { flex-direction: column; padding: 10px 0; }

  .col,
  .col--quarter { flex: 1 1 auto; width: 100%; }

  h1 { font-size: 32px; }

  .subhead--23 { font-size: 21px; }

  .copy--24 { font-size: 20px; }

  .faq__q { font-size: 15px; padding: 12px; }
  .faq__icon { font-size: 15px; }
  .faq__a { font-size: 12px; padding: 0 12px 12px; }

  .logo-header { width: 220px; }
  .img-400 { width: 100%; max-width: 340px; }

  .form-card { padding: 20px; }

  .btn { font-size: 18px; }
}

@media (max-width: 420px) {
  .btn { font-size: 17px; padding: 10px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
