/* Beta Marketing — static recreation of betamarketing.co.za */
:root {
  --cream: #fde8bb;
  --nav-active: #fcf7e6;
  --nav-text: #626262;
  --orange: #ff920b;
  --link: #3554a5;
  --muted: #a6a6a6;
  --body: #1a1a1a;
  --gray: #626262;
  --input-border: #919191;
  --send: #3554a5;
  --header-h: 130px;
  --page: 980px;
  --serif: "Libre Baskerville", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --nav: Jost, Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --form: "Avenir Next", Avenir, Jost, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: #000;
  background: #fff;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px 0 66px;
}

.nav-toggle {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  height: 44px;
}

.site-nav li {
  display: flex;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin: 0 4px;
  font-family: var(--nav);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--nav-text);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #444;
}

.site-nav a.is-active {
  background: var(--nav-active);
  color: var(--nav-text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 428px;
  overflow: hidden;
  background: #ddd;
}

.hero--products { height: 420px; }
.hero--services { height: 410px; }
.hero--about { height: 397px; }
.hero--contact { height: 377px; }

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: min(849px, 92%);
  height: 240px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 28px;
  z-index: 2;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 86px;
  font-weight: 700;
  color: #111;
  margin: 0;
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.hero h2 {
  font-family: var(--sans);
  font-size: 44px;
  font-weight: 700;
  color: #222;
  margin: 18px 0 0;
  text-align: center;
  line-height: 1.15;
}

/* ---------- Cream page body ---------- */
.cream {
  background: var(--cream);
  padding: 55px 0;
}

.cream--tight {
  padding: 40px 0;
}

.page-canvas {
  max-width: var(--page);
  margin: 0 auto;
}

/* Intro band with bokeh lights */
.intro {
  position: relative;
  overflow: hidden;
  padding: 48px 120px 56px;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/abstract-lights.jpg") center / cover no-repeat;
  opacity: 0.8;
  z-index: 0;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.intro > * {
  position: relative;
  z-index: 1;
}

.intro h3 {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 28px;
  line-height: 49px;
}

.intro p {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 32.4px;
  color: var(--body);
  margin: 0 0 32px;
}

.intro p:last-child {
  margin-bottom: 0;
}

.intro p.italic,
.intro--italic p {
  font-style: italic;
  color: #222;
}

.intro--short {
  padding: 36px 120px 40px;
}

.intro--form {
  padding: 42px 90px 48px;
}

/* White article panels sitting on cream */
.panel {
  background: #fff;
  padding: 48px 77px 56px;
  margin-top: 40px;
}

.panel--flush {
  padding: 40px 40px 50px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
}

.media-frame {
  border: 1px solid #000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 280px;
}

.media-frame img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.media-frame--ti {
  padding: 24px 20px;
  min-height: 329px;
}

.media-frame--ti img {
  max-width: 420px;
}

.split-copy {
  padding-top: 8px;
}

.split-copy h3 {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 700;
  color: #111;
  text-align: center;
  line-height: 1.25;
  margin: 0 0 28px;
}

.split-copy .sub {
  display: block;
  font-size: 32px;
  font-weight: 400;
  margin-top: 4px;
}

.split-copy p {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 25.2px;
  color: #111;
  margin: 0 0 18px;
}

.split-copy .cta-space {
  margin-top: 72px;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.play-badge {
  width: 77px;
  height: 77px;
  object-fit: cover;
  flex-shrink: 0;
}

.rule {
  border: 0;
  border-top: 1px solid #111;
  margin: 28px 0 32px;
}

.article p {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 25.2px;
  color: #111;
  margin: 0 0 22px;
}

.article ul,
.article ol {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 25.2px;
  color: #111;
  margin: 0 0 22px;
  padding-left: 28px;
}

.article li {
  margin: 0 0 4px;
}

.article a {
  color: var(--link);
  text-decoration: underline;
}

/* ---------- Contact form ---------- */
.contact-form {
  margin-top: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--form);
  font-size: 14px;
  font-weight: 400;
  color: #000;
  margin-bottom: 14px;
  padding: 0 20px 0 1px;
}

.req {
  color: #e31c23;
  font-size: 13px;
  margin-left: 2px;
}

.form-field input,
.form-field textarea {
  font-family: var(--form);
  font-size: 14px;
  color: #000;
  background: #fff;
  border: 2px solid var(--input-border);
  border-radius: 0;
  padding: 3px 3px 3px 10px;
  height: 36px;
  width: 100%;
  outline: none;
  box-shadow: none;
}

.form-field textarea {
  height: 86px;
  padding: 10.5px 10px 3px;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #666;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.btn-send {
  width: 250px;
  height: 36px;
  background: var(--send);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: var(--form);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  line-height: 36px;
  padding: 0;
}

.btn-send:hover {
  filter: brightness(1.05);
}

.form-success {
  display: none;
  font-family: var(--sans);
  font-size: 18px;
  color: #111;
  padding: 20px 0;
}

.form-success.is-visible {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  min-height: 123px;
  position: relative;
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  min-height: 123px;
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  align-items: center;
  padding: 12px 30px 12px 30px;
  column-gap: 12px;
}

.footer-inner p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 20.8px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.footer-copy {
  justify-self: center;
}

.footer-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  justify-self: end;
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

@media (max-width: 980px) {
  .header-inner {
    padding-left: 24px;
  }

  .intro,
  .intro--short,
  .intro--form {
    padding-left: 40px;
    padding-right: 40px;
  }

  .panel {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero-overlay {
    height: auto;
    min-height: 180px;
    padding: 24px 16px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 88px;
  }

  .header-inner {
    padding: 16px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
    background: var(--nav-active);
    border: 0;
    padding: 10px 14px;
    font-family: var(--nav);
    letter-spacing: 0.8px;
    font-size: 14px;
    color: var(--nav-text);
    cursor: pointer;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    height: auto;
    margin-top: 8px;
  }

  .hero {
    height: 280px !important;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .split,
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .btn-send {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding-bottom: 16px;
  }

  .footer-copy {
    margin-right: 0;
  }

  .intro h3,
  .split-copy h3 {
    font-size: 28px;
    line-height: 1.3;
  }
}
