/* FNQ Training & Editing
   Palette and type sampled from the live Wix site on 3 Aug 2026 so the rebuild
   reads as the same site. Purples are the exact computed values off fnqtraining.org. */

:root {
  --purple-deep:   #2c0434;
  --purple:        #610973;
  --purple-mid:    #460a52;
  --purple-bright: #850c9d;
  --lilac:         #e4dff5;
  --lilac-pale:    #f5d8fb;
  --ink:           #141414;
  --ink-soft:      #444444;
  --white:         #ffffff;
  --shell:         #efeae6;

  --wrap: 1200px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 3px;
}

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

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

body {
  margin: 0;
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Raleway', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.25rem + 2.9vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.3rem);  font-weight: 600; }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);    font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

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

a { color: var(--purple); }
a:hover { color: var(--purple-bright); }

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

.wrap { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Keyboard users need to see where they are. The Wix site had no visible focus ring. */
:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 0; top: -100px; z-index: 200;
  background: var(--purple-deep); color: var(--white);
  padding: 0.8rem 1.2rem; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- header ---------- */

.masthead { background: var(--white); border-bottom: 1px solid rgba(44, 4, 52, 0.08); }

.masthead__inner {
  display: flex; align-items: center; gap: clamp(0.8rem, 2.5vw, 1.8rem);
  padding: 1rem 0 1.1rem;
}

.masthead__logo { width: clamp(64px, 9vw, 104px); flex: none; }

.masthead__names { flex: 1 1 auto; min-width: 0; }

.masthead__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.25rem, 0.85rem + 1.9vw, 2.35rem);
  font-weight: 500; color: var(--purple-deep);
  margin: 0; line-height: 1.1;
}

.masthead__tagline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.85rem, 0.7rem + 0.7vw, 1.3rem);
  font-weight: 300; color: var(--purple-deep);
  margin: 0.25em 0 0;
}

.social { display: flex; gap: 0.9rem; flex: none; }
.social a { color: var(--ink); display: grid; place-items: center; }
.social a:hover { color: var(--purple-bright); }
.social svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- navigation ---------- */

.nav { background: var(--white); border-bottom: 1px solid rgba(44, 4, 52, 0.08); }

.nav__toggle {
  display: none;
  width: 100%; padding: 0.85rem var(--pad);
  font: inherit; font-weight: 600;
  background: var(--shell); color: var(--purple-deep);
  border: 0; cursor: pointer; text-align: left;
}

.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
}

.nav__list a {
  display: block; padding: 1rem clamp(0.7rem, 1.8vw, 1.6rem);
  font-family: 'Raleway', sans-serif; font-size: 1rem;
  color: var(--ink); text-decoration: none;
}

.nav__list a:hover { background: var(--shell); color: var(--purple-deep); }
.nav__list a[aria-current="page"] { background: var(--shell); color: var(--purple-deep); font-weight: 600; }

@media (max-width: 800px) {
  .nav__toggle { display: block; }
  .nav__list { display: none; flex-direction: column; }
  .nav[data-open="true"] .nav__list { display: flex; }
  .nav__list a { padding: 0.85rem var(--pad); border-top: 1px solid rgba(44, 4, 52, 0.08); }
}

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate;
  color: var(--white); text-align: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: var(--purple-mid);
}

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/hero-bg.jpg") center / cover no-repeat;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.06);
}

/* The Wix hero ran white text straight over a busy photo. This scrim keeps the
   same look while getting the body copy to a readable contrast ratio. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(44, 4, 52, 0.72), rgba(70, 10, 82, 0.82));
}

.hero h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); margin-bottom: 0.35em; }

.hero__products {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.05rem, 0.8rem + 1.15vw, 1.75rem);
  font-weight: 600; margin: 0 0 1.1em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero__products span { white-space: nowrap; }
.hero__products span + span::before { content: "  |  "; opacity: 0.65; font-weight: 300; }

.hero__intro { max-width: 62ch; margin-inline: auto; }
.hero__intro strong { font-weight: 600; }

.hero__delivery {
  font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase;
  font-size: clamp(0.82rem, 0.74rem + 0.35vw, 1rem);
  margin: 1.4em auto 0; max-width: 60ch;
}

/* ---------- course cards ---------- */

.courses { background: var(--purple-mid); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.courses__grid {
  display: grid; gap: clamp(1rem, 2.2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--white); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.card__media { aspect-ratio: 4 / 3; background: var(--lilac); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.card h3 { color: var(--purple); margin-bottom: 0.15em; }

.card__level {
  font-size: 0.9rem; color: var(--purple-mid);
  margin: 0 0 0.9em; font-weight: 500;
}

.card__blurb { flex: 1; margin-bottom: 1.2rem; }

.card__meta {
  display: flex; align-items: baseline; gap: 0.4rem;
  font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem;
}
.card__meta strong { font-size: 1.05rem; color: var(--purple-deep); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-align: center;
  font-family: 'Poppins', sans-serif; font-weight: 500;
  padding: 0.7rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid var(--purple);
  background: var(--purple); color: var(--white);
  cursor: pointer; font-size: 1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--purple-bright); border-color: var(--purple-bright); color: var(--white); }

.btn--ghost { background: transparent; color: var(--purple); }
.btn--ghost:hover { background: var(--purple); color: var(--white); }

.btn--light { background: var(--white); color: var(--purple-deep); border-color: var(--white); }
.btn--light:hover { background: var(--lilac); border-color: var(--lilac); color: var(--purple-deep); }

/* ---------- generic sections ---------- */

.section { padding: clamp(2.6rem, 6.5vw, 5rem) 0; }
.section--tint { background: var(--lilac); }
.section--dark { background: var(--purple-deep); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section--dark a { color: var(--lilac-pale); }

.section__head { text-align: center; max-width: 68ch; margin: 0 auto clamp(1.8rem, 4vw, 3rem); }
.section__head h2 { color: var(--purple-deep); }
.section--dark .section__head h2 { color: var(--white); }
.section__lead { color: var(--ink-soft); }
.section--dark .section__lead { color: var(--lilac); }

/* ---------- testimonials ---------- */

.quotes { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.quote { display: flex; flex-direction: column; gap: 1rem; }

.quote__logo { height: 62px; display: flex; align-items: center; }
.quote__logo img { max-height: 62px; width: auto; object-fit: contain; }

.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after  { content: "\201D"; }

.quote cite { font-style: normal; font-size: 0.92rem; line-height: 1.45; display: block; }
.quote cite b { display: block; font-weight: 600; }
.quote cite span { color: var(--ink-soft); }
.section--dark .quote cite span { color: var(--lilac); }

.quote--person img { border-radius: var(--radius); width: 100%; max-width: 240px; }

/* ---------- contact form ---------- */

.form { display: grid; gap: 1rem; max-width: 640px; margin-inline: auto; }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9rem; font-weight: 600; }

.field input, .field textarea {
  font: inherit; padding: 0.75rem 0.85rem;
  border: 1px solid rgba(44, 4, 52, 0.28); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--purple); }

/* ---------- footer ---------- */

.footer { background: var(--purple-deep); color: var(--lilac); padding: clamp(2.2rem, 5vw, 3.5rem) 0 2rem; }
.footer a { color: var(--lilac-pale); }

.footer__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  margin-bottom: 2rem;
}

.footer h2 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.7em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.4em; }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between;
  font-size: 0.85rem; color: var(--lilac);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
