/*
Theme Name: Nerdloom LSP
Theme URI: https://example.com
Author: Nerdloom
Description: A scrolling, image-driven one-page site for Nerdloom's LEGO® Serious Play® facilitation practice, with a dedicated inquiry page.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: nerdloom-lsp
*/

/* ---------- Tokens (sampled from the Nerdloom mark: #355F3B) ---------- */
:root {
  --green: #355F3B;
  --green-dark: #223D26;
  --green-mid: #4C7A53;
  --green-tint: #EEF3EE;
  --green-tint-2: #E1EAE2;
  --ink: #1B2620;
  --white: #FFFFFF;
  --line: rgba(27,38,32,0.10);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1120px;
  --shadow-card: 0 10px 30px rgba(27,38,32,0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.4em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  display: block;
}

/* ---------- Header / tab nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--green-dark); letter-spacing: 0.01em; }

.main-nav { display: none; }
@media (min-width: 900px) { .main-nav { display: block; } }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease;
}
.main-nav a:hover { background: var(--green-tint); }
.main-nav a.is-contact {
  background: var(--green);
  color: var(--white);
}
.main-nav a.is-contact:hover { background: var(--green-dark); }

.nav-toggle {
  display: inline-flex;
  background: none; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 8px 10px; cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 10px 24px 16px; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a.is-contact { color: var(--green); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 104px;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,38,32,0.72) 0%, rgba(27,38,32,0.84) 100%);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero img.hero-mark { height: 64px; width: auto; margin: 0 auto 30px; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); max-width: 18ch; margin: 0 auto 14px; color: var(--white); }
.hero .tagline {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  color: #C9E0CC;
  margin-bottom: 22px;
}
.hero .lede { max-width: 62ch; margin: 0 auto 32px; color: rgba(255,255,255,0.92); font-size: 18px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms ease, box-shadow 150ms ease;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 6px 18px rgba(53,95,59,0.25); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-tint); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }

/* ---------- Scroll-reveal image sections ---------- */
.reveal-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  color: var(--white);
  overflow: hidden;
  scroll-margin-top: 84px;
}
#facilitator, #process { scroll-margin-top: 84px; }
.reveal-section .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
@media (max-width: 900px) {
  .reveal-section .bg { background-attachment: scroll; }
}
.reveal-section .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,38,32,0.72) 0%, rgba(27,38,32,0.82) 100%);
  z-index: 1;
}
.reveal-section .wrap { position: relative; z-index: 2; }
.reveal-section .eyebrow { color: #C9E0CC; }
.reveal-section h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); max-width: 18ch; }
.reveal-section .body-copy { max-width: 68ch; font-size: 17.5px; color: rgba(255,255,255,0.92); }
.reveal-section .body-copy p { margin-bottom: 1.1em; }

.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- Light (non-image) content sections ---------- */
.light-section { padding: 96px 0; background: var(--white); }
.light-section.alt { background: var(--green-tint); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--green-dark); }
.section-head p { color: var(--ink); opacity: 0.75; font-size: 16.5px; }

/* Process (Prompt / Build / Share / Reflect) */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
}
.process-step .step-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--green); display: block; margin-bottom: 14px; }
.process-step h3 { font-size: 18px; color: var(--green-dark); margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--ink); opacity: 0.8; margin: 0; }

/* Problem list */
.check-list { max-width: 720px; margin: 0 auto; }
.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.check-list li:last-child { border-bottom: none; }
.check-list .mark {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  margin-top: 2px;
}

/* Featured embedded video */
.featured-video { max-width: 780px; margin: 0 auto 40px; }
.featured-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--green-dark);
}
.featured-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Video / learn more cards */
.video-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 980px) { .video-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease;
}
.video-card:hover { transform: translateY(-3px); }
.video-thumb {
  aspect-ratio: 16/9;
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.video-thumb .thumb-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,38,32,0.15) 0%, rgba(27,38,32,0.55) 100%);
}
.video-thumb .play {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.video-thumb .play::before {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--green);
  margin-left: 3px;
}
.video-thumb.article-thumb .read-icon {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(27,38,32,0.55);
  padding: 8px 14px;
  border-radius: 999px;
}
.video-card .video-label { padding: 16px 18px; font-size: 14.5px; font-weight: 600; color: var(--green-dark); }

/* Facilitator bio */
.bio-grid { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
@media (max-width: 800px) { .bio-grid { grid-template-columns: 1fr; } }
.bio-photo { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.bio-copy h3 { color: var(--green-dark); font-size: 22px; margin-bottom: 4px; }
.bio-copy .role { font-family: var(--font-mono); font-size: 13px; color: var(--green); margin-bottom: 18px; display: block; }
.bio-copy p { color: var(--ink); font-size: 16px; opacity: 0.88; }
.bio-copy .btn { margin-top: 10px; }

/* ---------- Contact / inquiry page ---------- */
.contact-hero {
  background: var(--green-dark);
  color: var(--white);
  padding: 72px 0 56px;
  text-align: center;
}
.contact-hero h1 { color: var(--white); font-size: clamp(30px, 3.8vw, 42px); }
.contact-hero p { color: rgba(255,255,255,0.82); max-width: 56ch; margin: 0 auto; }

.contact-wrap { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12.5px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-dark);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: var(--font-body);
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--ink); opacity: 0.6; margin-top: 14px; text-align: center; }
.form-success { background: var(--green-tint); border: 1px solid var(--green); color: var(--green-dark); padding: 14px 16px; border-radius: 8px; font-size: 14.5px; margin-bottom: 20px; }
.form-error { background: #FBE9E9; border: 1px solid #C0392B; color: #8B2A20; padding: 14px 16px; border-radius: 8px; font-size: 14.5px; margin-bottom: 20px; }

.thank-you-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.thank-you-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.thank-you-card h2 { color: var(--green-dark); font-size: 24px; margin-bottom: 12px; }
.thank-you-card p { color: var(--ink); opacity: 0.85; font-size: 16px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.thank-you-card .btn { margin-top: 6px; }
.thank-you-back { margin-top: 24px !important; font-size: 14px !important; }
.thank-you-back a { color: var(--green); text-decoration: none; font-weight: 600; }

.contact-direct { text-align: center; margin-top: 28px; font-size: 14.5px; color: var(--ink); opacity: 0.75; }
.contact-direct a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-tint-2); padding: 44px 0 28px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 18px;
}
.site-footer .brand img { height: 26px; }
.footer-nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 14px; color: var(--green-dark); font-weight: 500; }
.footer-legal { font-size: 12px; color: var(--ink); opacity: 0.55; line-height: 1.7; }

/* ---------- Trusted-by strip ---------- */
.trusted-by { padding: 48px 0; }
.trusted-by-label {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}
.trusted-by-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
}
.trusted-by-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--green-dark);
  opacity: 0.75;
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--green-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--green);
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 150ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; color: var(--ink); opacity: 0.8; font-size: 15.5px; }

/* ---------- Quiz ---------- */
.quiz-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  min-height: 260px;
}
.quiz-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--green-dark);
  margin: 0 0 20px;
  text-align: center;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: var(--green-tint);
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.quiz-option:hover { background: var(--green-tint-2); border-color: var(--green); }
.quiz-result { text-align: center; }
.quiz-result-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--green-dark);
  margin: 0 0 24px;
}

/* ---------- Footer social icon ---------- */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: background 150ms ease;
}
.footer-social:hover { background: var(--green-dark); }

/* ---------- Admin leads table ---------- */
.lsp-leads-wrap table { border-collapse: collapse; width: 100%; background: #fff; }
.lsp-leads-wrap th, .lsp-leads-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e2e2; font-size: 13.5px; }
.lsp-leads-wrap th { background: #f6f7f7; }
