/* Math with Meg — styles matched to the original LeadConnector site */

:root {
  --purple: #583381;
  --green: #0b6623;
  --magenta: #e60bb6;
  --offwhite: #fdfaff;
  --black: #000;
  --white: #fff;
  --facebook: #188bf6;
  --youtube: #e93d3d;
  --faq-bg: #f3f3f3;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-button: 'Poppins', system-ui, sans-serif;
  --font-nav: 'Abel', system-ui, sans-serif;

  --container: 1170px;
  --gutter: 16px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem); /* 22px on desktop */
  line-height: 1.3;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header { padding: 2.75rem 0 2rem; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: 125px; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  font-family: var(--font-nav);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--green);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle {
  display: none;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header { padding: 1.25rem 0; }
  .site-header .container { flex-wrap: wrap; }
  .brand img { width: 100px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-basis: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 0; }
}

/* ---------- Sections ---------- */

.band { padding: 2.5rem 0; }
.band-white { background: var(--white); color: var(--black); }
.band-green { background: var(--green); color: var(--white); }
.band-purple { background: var(--purple); color: var(--white); }

.row + .row { margin-top: 2.5rem; }
.row > * + * { margin-top: 0.75rem; }

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  align-items: center;
}
.cols > * + * { margin-top: 0; }
.col > * + * { margin-top: 0.75rem; }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
}

.row img { width: 100%; }

/* ---------- Type ---------- */

/* Headings carry their original desktop size in px as --size; it shrinks with the
   viewport below ~1250px wide but never under 1.6rem (or its own size, if smaller). */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  font-size: max(min(var(--size) * 1px, 1.6rem), var(--size) * min(1px, 100vw / 1250));
  overflow-wrap: break-word;
}
h1.font-anton, h2.font-anton, h3.font-anton { line-height: 1.15; }

.font-anton { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.font-poppins { font-family: var(--font-button); }
.font-abel { font-family: var(--font-nav); font-weight: 400; }

.bold { font-weight: 700; }
.regular { font-weight: 400; }
.upper { text-transform: uppercase; }

.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }
@media (max-width: 760px) { .align-justify { text-align: left; } }

.color-purple { color: var(--purple); }
.color-green { color: var(--green); }
.color-white { color: var(--white); }
.color-black { color: var(--black); }
.color-magenta { color: var(--magenta); }

.bg-purple { background: var(--purple); padding: 0.1em 0.25em; }
.bg-green { background: var(--green); padding: 0.1em 0.25em; }

.boxed { border: 4px solid currentColor; padding: 0.05em 0.15em; }
.col.boxed, .row.boxed { padding: 1.25rem; }
.border-purple { border-color: var(--purple); }
.border-green { border-color: var(--green); }
.border-white { border-color: var(--white); }
.border-black { border-color: var(--black); }

.text p { margin: 0; }
.text .gap { height: 1.3em; }
.text strong { font-weight: 800; }
.text a { text-decoration: underline; }

/* ---------- Lists ---------- */

.text ul, .text ol, .checks { margin: 0.4em 0; padding-left: 0.25em; list-style: none; }
.text li, .checks li { position: relative; padding-left: 1.6em; font-family: var(--font-button); font-weight: 600; }
.text li + li, .checks li + li { margin-top: 0.15em; }
.text li::before, .checks li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85em;
  line-height: 1.6;
  color: var(--green);
}
.band-green .text li::before, .band-green .checks li::before { color: var(--white); }

/* Inline check marks: green on white, white on colored bands */
.check { color: var(--green); font-weight: 700; }
.band-green .check, .band-purple .check { color: var(--white); }
.page-watch-and-learn .band-white .check,
.page-watch-and-learn .band-white .text li::before { color: var(--purple); }

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

.actions { margin: 1rem 0 0; text-align: center; }
.cols .actions { text-align: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1.4em;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.pill { border-radius: 999px; }
.btn.font-poppins { font-family: var(--font-button); font-weight: 600; }
.btn.font-anton { font-family: var(--font-display); font-weight: 400; }

.btn-purple { background: var(--purple); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-white { background: var(--white); color: var(--purple); }

/* the home hero call to action is the largest button on the site */
.band:first-child .btn { font-size: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem); }

.icon-youtube::before {
  content: "\f167";
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

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

.faq > * + * { margin-top: 0.6rem; }
.faq details { background: var(--faq-bg); border-radius: 6px; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1875rem);
  color: var(--green);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.45em;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0 0 0.75rem; padding: 0 1rem; color: var(--black); }
.faq details p:last-child { padding-bottom: 0.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem 0 0.75rem;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-button);
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem 4rem;
}

.footer-logo {
  display: grid;
  place-items: center;
  width: 195px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
}
.footer-logo img { width: 80%; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.9rem 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links i { width: 1.1em; }

.social {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35em;
  padding: 0.3rem;
  font-size: clamp(1.125rem, 0.8rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.social a:hover { filter: brightness(1.1); }
.social-facebook { background: var(--facebook); }
.social-instagram { background: var(--magenta); }
.social-youtube { background: var(--youtube); }
.social-tiktok { background: var(--black); }

.copyright {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  font-weight: 400;
  text-align: center;
}
.copyright a { font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; justify-items: center; }
  .footer-logo { width: 150px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
  .social { grid-template-columns: 1fr 1fr; }
}
