/* PeopleDash – static rebuild of peopledash.co.za
   Values mirror the original Divi theme settings (colours, fonts, spacing, breakpoints 980/767/479px). */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/open-sans-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/open-sans-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "Abel"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/abel-latin-400-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --header-bg: #171334;
  --navy: #091c4f;
  --accent: #2ea3f2;
  --text: #666;
  --heading: #333;
  --header-h: 112px;
  --header-h-scrolled: 54px;
  --heading-font: "Poppins", Helvetica, Arial, Lucida, sans-serif;
  --body-font: "Open Sans", Arial, sans-serif;
  --footer-font: "Abel", Helvetica, Arial, Lucida, sans-serif;
  --divider: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik02NDAgMTM5TDAgMHYxNDBoMTI4MFYwTDY0MCAxMzl6Ii8+PC9nPjwvc3ZnPg==");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-scrolled); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; padding-top: var(--header-h);
  font-family: var(--body-font); font-size: 14px; font-weight: 400; line-height: 1.7em; color: var(--text);
  background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
strong { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding-bottom: 10px; font-family: var(--heading-font); font-weight: 500; line-height: 1em; color: var(--heading); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; padding: 10px 16px; background: #fff; color: var(--header-bg); }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout helpers ---------- */
.section { position: relative; background-color: #fff; padding: 4% 0; }
.row { position: relative; width: 80%; max-width: 1080px; margin: 0 auto; padding: 27px 0; }
.has-divider .row { z-index: 5; }
.divider {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 29vw; z-index: 1; pointer-events: none;
  background-image: var(--divider); background-size: 142.857% 29vw; background-position: 0 0;
}
.btn-wrap { margin-bottom: 0; }
.btn-wrap.center { text-align: center; }
.btn {
  display: inline-block; position: relative;
  padding: 16px 32px; border: 2px solid transparent; border-radius: 100px;
  background-color: var(--navy); color: #fff;
  font-family: var(--heading-font); font-size: 16px; font-weight: 600; letter-spacing: 2px; line-height: 1.7em;
  box-shadow: 0 20px 71px -14px var(--navy);
  transition: all 300ms ease;
}
.btn:hover, .btn:focus-visible { color: #fff; }
.text-block { line-height: 2em; max-width: 700px; margin-bottom: 30px; }
.text-block h2, .section-heading h2 { font-family: var(--heading-font); font-weight: 600; font-size: 40px; line-height: 1.4em; color: var(--heading); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  height: var(--header-h); background-color: var(--header-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  transition: height .4s ease-in-out;
}
.site-header.is-scrolled { height: var(--header-h-scrolled); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 32px 0 30px; }
.logo-link { display: flex; align-items: center; height: 100%; }
#logo { display: block; width: auto; height: auto; max-height: 65%; transition: all .4s ease-in-out; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu li { padding-right: 22px; }
.menu li:last-child { padding-right: 0; }
.menu a { display: block; color: #fff; font-family: var(--heading-font); font-size: 15px; font-weight: 600; line-height: 1em; transition: opacity .4s ease-in-out; }
.menu a:hover { opacity: .7; }
.menu-toggle, .mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 6vw 0 16vw; overflow: hidden;
  background-color: rgba(239, 103, 40, .96);
  background-image: linear-gradient(148deg, #2130b7 19%, #ff915e 100%);
}
.parallax-bg {
  position: absolute; left: 0; top: 0; width: 100%; height: 130%; z-index: 0; pointer-events: none;
  background: url(/assets/images/software-06.png) center top / cover no-repeat;
  will-change: transform;
}
.hero-row { width: 80%; max-width: 80%; padding: 0; }
.hero-title {
  max-width: 80%; margin: 0 auto 20px; text-align: center; color: #fff;
  font-family: var(--heading-font); font-weight: 600; font-size: 45px; line-height: 1.5em;
  text-shadow: 0 .3em 1.4em rgba(0, 0, 0, .24);
}
.hero-text { max-width: 60%; margin: 0 auto 35px; text-align: center; color: #fff; font-size: 16px; line-height: 2em; }
.hero-image-row { width: 100%; max-width: 100%; padding: 0 0 27px; }
.hero-image { display: block; width: 100%; margin-bottom: -18.5vw; }

/* ---------- Why ---------- */
.why { padding: 6px 0 5px; }
.why .row:first-child, .how .row:first-child { padding-top: 30px; }
.section-heading { max-width: 700px; margin: 0 auto; text-align: center; line-height: 2em; }
.why-grid { display: flex; align-items: flex-start; max-width: 1440px; padding: 0 0 27px; }
.why-grid .col { width: 17.6%; margin-right: 3%; }
.why-grid .col:last-child { margin-right: 0; }
.why-grid .col-b { padding-top: 80px; }
.why-grid .col-c { padding-top: 160px; }
.why-grid .col-d { padding-top: 30px; }
.card {
  overflow: hidden; padding: 30px; border-radius: 10px; background-color: #fff; text-align: center; line-height: 2em;
  box-shadow: 0 10px 80px -10px rgba(44, 54, 92, .2);
  transition: box-shadow 300ms ease, opacity 1s ease, transform 1s ease;
}
.card:hover { box-shadow: 0 50px 180px -10px rgba(44, 54, 92, .2); }
.card img, .feature img { display: block; margin: 0 auto 30px; transition: filter 300ms ease; }
.card:hover img, .feature:hover img { filter: saturate(150%); }
.card h3, .feature h3 { font-family: var(--heading-font); font-weight: 600; font-size: 18px; line-height: 1.6em; color: var(--heading); }
.card p, .feature p { line-height: 2em; }

/* ---------- How ---------- */
.how { padding: 0; }
.how-grid { display: flex; justify-content: flex-start; padding: 0 0 27px; }
.how-grid-2 { justify-content: center; padding: 27px 0; }
.feature { width: 20.875%; margin-right: 5.5%; text-align: center; line-height: 2em; }
.feature:last-child { margin-right: 0; }
.how-cta { padding: 27px 0; }

/* ---------- Transform ---------- */
.transform {
  padding: 1vw 0 5px;
  background-color: rgba(239, 103, 40, .96);
  background-image: linear-gradient(180deg, #fff 19%, #b3afff 100%);
}
.two-col { display: flex; align-items: flex-start; padding: 8px 0 0; }
.col-half { width: 47.25%; margin-right: 5.5%; }
.col-half:last-child { margin-right: 0; }
.transform-image { display: block; width: calc(100% + 8vw); max-width: none; margin-left: -8vw; }
.transform .text-block { padding-right: 0; }

/* ---------- What ---------- */
.what {
  padding: 0 0 31vw;
  background: #fff url(/assets/images/software-22.png) center bottom / contain no-repeat;
}
.what .row { padding: 30px 0 27px; }
.col-what { width: 57.8%; }

/* ---------- Sign up ---------- */
.signup {
  padding: 1vw 0 3vw;
  background: #fff url(/assets/images/software-10.png) center top / cover no-repeat;
}
.signup-row { width: 80%; max-width: 80%; padding: 30px 0 40px; }
.signup-title { max-width: 70%; margin: 0 auto 20px; text-align: center; }
.signup-title h2 { font-family: var(--heading-font); font-weight: 600; font-size: 4vw; line-height: 1.5em; color: #fff; text-shadow: 0 .3em 1.4em rgba(0, 0, 0, .24); }
.signup-text { max-width: 60%; margin: 0 auto 28px; text-align: center; color: #fff; font-size: 16px; line-height: 2em; }

/* ---------- Contact row ---------- */
.contact-box {
  display: flex; align-items: center; gap: 20px; max-width: 680px; margin: 0 auto; padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  background: rgba(23, 19, 52, .88); box-shadow: 0 20px 60px -20px rgba(9, 28, 79, .8);
  font-family: var(--heading-font); text-align: left;
}
.contact-icon { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(46, 163, 242, .16); transition: background-color .2s ease; }
.contact-text { flex: 1; min-width: 0; }
.contact-title { margin: 0; padding: 0 0 4px; font-family: var(--heading-font); font-size: 13px; font-weight: 600; letter-spacing: 2px; line-height: 1.3; text-transform: uppercase; color: var(--accent); }
.contact-values { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; }
.contact-value { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.3; word-break: break-word; transition: color .2s ease; }
.contact-value:hover, .contact-value:focus-visible { color: var(--accent); }
.contact-value:hover .contact-icon, .contact-value:focus-visible .contact-icon { background: #1e8ad6; }
.contact-cta {
  flex: none; padding: 12px 26px; border-radius: 6px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 1.5px; line-height: 1; text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease;
}
.contact-cta:hover, .contact-cta:focus-visible { background: #1e8ad6; color: #fff; transform: translateY(-1px); }

/* ---------- Contact form (styled like the original Gravity Forms "orbital" theme) ---------- */
.form-box { max-width: 47%; margin: 0 auto; padding: 35px; background-color: var(--header-bg); box-shadow: 0 2px 18px rgba(0, 0, 0, .3); font-family: "Poppins", sans-serif; }
.form-title { padding-bottom: 10px; font-family: "Poppins", sans-serif; font-size: 26px; font-weight: 400; line-height: 1; text-align: center; color: #fff; }
.field-list { display: grid; row-gap: 40px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { display: block; margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.43; color: #fff; }
.required { margin-left: 4px; font-size: 12px; font-weight: 500; color: #c02b0a; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.sub { display: flex; flex-direction: column; min-width: 0; }
.sub-label { margin-bottom: 8px; font-size: 13px; font-weight: 400; line-height: 1.43; color: #fff; }
.field-description { margin-bottom: 8px; font-size: 13px; font-weight: 400; line-height: 1.43; color: #fff; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; max-width: 100%; margin: 0;
  border: 1px solid #686e77; border-radius: 3px; background: #fff; color: #171334;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 400;
  box-shadow: 0 1px 4px rgba(18, 25, 97, .08);
}
.contact-form input[type="text"], .contact-form input[type="email"] { height: 38px; padding: 0 12px; line-height: 38px; }
.contact-form textarea { display: block; height: 192px; padding: 12px; line-height: 1.5; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #204ce5; outline-offset: 1px; }
.contact-form [aria-invalid="true"] { border-color: #c02b0a; }
.char-count { margin: 8px 0 0; }
.field-error { margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.43; color: #ff8a73; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { margin-top: 23px; text-align: center; }
.form-button {
  height: 38px; padding: 0 16px; border: 0; border-radius: 3px; cursor: pointer;
  background-color: #fff; color: #171334; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 400; line-height: 1;
  box-shadow: 0 1px 4px rgba(18, 25, 97, .08); transition: background-color .2s ease;
}
.form-button:hover { background-color: #1e73be; }
.form-button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin-top: 20px; padding: 12px 16px; border: 1px solid #c02b0a; border-radius: 3px; background: rgba(192, 43, 10, .12); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; }
.form-status a { color: #fff; text-decoration: underline; }
.form-confirmation { color: #fff; font-size: 16px; line-height: 1.7; text-align: center; }
.form-confirmation:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--header-bg); }
.footer-row { padding: 27px 0; text-align: center; }
.footer-logo { display: block; width: 23%; margin: 0 auto 30px; }
.footer-email, .footer-credit { padding: 0; font-family: var(--footer-font); font-size: 16px; color: #fff; }
.footer-credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--accent); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transition: opacity 1s ease, transform 1s ease, box-shadow 300ms ease; }
.js .reveal-up { transform: translateY(40px); }
.js .reveal-left { transform: translateX(-40px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Tablet (≤980px) ---------- */
@media (max-width: 980px) {
  body { padding-top: 80px; }
  html { scroll-padding-top: 0; }
  .section { padding: 50px 0; }
  .row { padding: 30px 0; }

  .site-header, .site-header.is-scrolled { position: absolute; height: 80px; }
  .header-inner { width: 80%; margin: 0 auto; padding: 0; }
  #logo { max-height: 36px; max-width: 150px; }
  .top-nav { display: none; }
  .menu-toggle {
    display: block; position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    position: absolute; left: 4px; width: 24px; height: 3px; border-radius: 1px; background: var(--accent); content: ""; transition: transform .25s ease, opacity .25s ease;
  }
  .menu-toggle .bars { top: 14.5px; }
  .menu-toggle .bars::before { left: 0; top: -8px; }
  .menu-toggle .bars::after { left: 0; top: 8px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu {
    position: absolute; top: 80px; left: 0; width: 100%; margin: 0; padding: 15px; list-style: none;
    background: var(--header-bg); border-top: 3px solid var(--accent); box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .mobile-menu:not([hidden]) { display: block; }
  .mobile-menu a { display: block; padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); color: #fff; font-family: var(--heading-font); font-size: 14px; font-weight: 600; line-height: 1.7em; }
  .mobile-menu a:hover { opacity: .7; }

  .hero { padding: 6vw 0 16vw; }
  .hero-row { padding: 40px 0; }
  .hero-title { font-size: 38px; }
  .hero-text { max-width: none; margin-bottom: 30px; }
  .hero-image { margin-bottom: -20vw; }
  .hero-image-row { padding: 0 0 30px; }

  .why { padding: 6px 0 5px; }
  .why-grid, .how-grid { flex-wrap: wrap; padding-top: 0; }
  .how-grid-2 { padding-top: 30px; }
  .two-col { padding: 8px 0 0; }
  .why-grid .col { width: 47.25%; margin: 0 5.5% 30px 0; padding-top: 0 !important; }
  .why-grid .col:nth-child(2n) { margin-right: 0; }
  .why-grid .col:last-child { margin-bottom: 0; }
  .text-block h2, .section-heading h2 { font-size: 26px; }

  .how { padding: 0; }
  .feature { width: 47.25%; margin: 0 5.5% 30px 0; }
  .feature:nth-child(2n) { margin-right: 0; }
  .how-grid .feature:nth-last-child(-n+2) { margin-bottom: 0; }
  .how-grid-2 .feature { margin-right: 0; }
  .how-grid-2 .feature:first-child { margin-right: 5.5%; }

  .transform { padding: 1vw 0 10vw; }
  .transform .divider { height: 90px; background-size: 100% 90px; }
  .two-col { flex-direction: column; }
  .col-half { width: 100%; margin: 0 0 30px; }
  .col-half:last-child { margin-bottom: 0; }
  .transform-image { width: 100%; max-width: 802px; margin: 0 auto; }

  .what { padding: 0 0 31vw; }
  .col-what { width: 100%; }

  .signup { padding: 1vw 0 3vw; }
  .signup-row { padding: 40px 0; }
  .signup-title, .signup-text { max-width: none; }
  .signup-title h2 { font-size: 38px; }
  .signup-text { margin-bottom: 30px; }
  /* Original capped the form at 47% width on every screen size, which squeezed it on phones; let it use the row width here. */
  .form-box { max-width: 100%; }
}

/* ---------- Phone (≤767px) ---------- */
@media (max-width: 767px) {
  .hero-title { font-size: 28px; }
  .hero-text { font-size: 14px; }
  .hero-image { margin-bottom: -23vw; }
  .text-block h2, .section-heading h2 { font-size: 20px; }
  .card h3, .feature h3 { font-size: 16px; }
  .card img, .feature img { width: 80px; }
  .signup-title h2 { font-size: 28px; }
  .signup-text { font-size: 14px; }
  .form-box { padding: 25px; }
  .contact-box { flex-direction: column; padding: 26px 20px; text-align: center; }
  .contact-values { justify-content: center; }
  .contact-value { font-size: 17px; }
}

/* ---------- Small phone (≤479px) ---------- */
@media (max-width: 479px) {
  .why-grid .col, .feature { width: 100%; margin: 0 0 30px !important; }
  .why-grid .col:last-child, .how-grid .feature:last-child { margin-bottom: 0 !important; }
  .field-grid { grid-template-columns: 1fr; row-gap: 16px; }
}

/* ---------- 404 + plain message pages ---------- */
.plain-page { padding-top: 0; }
.plain-message { width: 80%; max-width: 700px; margin: 0 auto; padding: 15vh 0; text-align: center; }
.plain-message h1 { font-weight: 600; font-size: 40px; line-height: 1.4em; }
.plain-message p { padding-bottom: 1.5em; font-size: 16px; line-height: 2em; }
.error-hero { padding: 8vw 0 10vw; text-align: center; color: #fff; background-color: #2130b7; background-image: linear-gradient(148deg, #2130b7 19%, #ff915e 100%); }
.error-hero h1 { color: #fff; font-weight: 600; font-size: 45px; line-height: 1.5em; text-shadow: 0 .3em 1.4em rgba(0, 0, 0, .24); }
.error-hero p { max-width: 600px; margin: 0 auto; padding-bottom: 35px; font-size: 16px; line-height: 2em; }
@media (max-width: 767px) { .error-hero h1, .plain-message h1 { font-size: 28px; } }
