@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   VR4Teaching — Brand Standard stylesheet
   Architecture per BRAND_STANDARD.md:
     - §3/§4/§5 tokens live in :root (never hard-code a hex in a component)
     - §1 one scope class per app root retints --accent / --link / --cta / --focus-ring / surface
     - :root defaults to the MARKETING surface, so pages work before a scope class is added;
       other surfaces opt in with .vr-app-t9it / -workshops / -custom / -modules
   ============================================================ */

/* ---------- §3 Color · raw brand values ---------- */
:root {
  /* master brand */
  --vr-blue-700:  #1c6a8d;   /* logo ring / marketing accent */
  --vr-blue-800:  #144f6d;   /* darker edge (banner base) */
  --vr-green-500: #69a84f;   /* logo grid / Workshops accent */
  --vr-action:    #007bff;   /* marketing CTA blue */

  /* product accents */
  --vr-accent-t9it:      #4f46e5;   /* indigo */
  --vr-accent-workshops: #69a84f;   /* leaf green */
  --vr-accent-custom:    #e07a3f;   /* orange */
  --vr-accent-modules:   #2a9d8f;   /* teal */

  /* surfaces */
  --vr-cream:   #f5f1ea;   /* marketing page plate */
  --vr-app-bg:  #f6f7f9;   /* app page background */
  --vr-paper:   #ffffff;   /* card surface, everywhere */

  /* text hierarchy */
  --vr-ink:       #1d2433;
  --vr-ink-soft:  #55606f;
  --vr-ink-faint: #8a93a0;

  /* hairlines */
  --vr-hairline:   #e3ddd1;  /* on cream */
  --vr-hairline-2: #e6e8ec;  /* on cool */

  /* answer triad (facilitator data viz) + danger */
  --vr-answer-a: #4f46e5;
  --vr-answer-b: #e0892f;
  --vr-answer-c: #3f9d6d;
  --vr-danger:   #d64545;

  /* ---------- §4 Typography ---------- */
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;   /* editorial only */
  --font-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-display: 3rem;      /* 48 · marketing hero */
  --fs-h1:      2rem;      /* 32 */
  --fs-h2:      1.5rem;    /* 24 */
  --fs-h3:      1.25rem;   /* 20 */
  --fs-lg:      1.125rem;  /* 18 */
  --fs-body:    1rem;      /* 16 */
  --fs-sm:      0.875rem;  /* 14 */
  --fs-xs:      0.75rem;   /* 12 · labels/meta */

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-black:   800;

  --lh-tight: 1.15;
  --lh-snug:  1.4;
  --lh-body:  1.6;
  --lh-loose: 1.7;

  --ls-tight:  -0.01em;
  --ls-normal:  0;
  --ls-wide:    0.05em;
  --ls-label:   0.08em;
  --ls-caps:    0.1em;

  /* ---------- §5 Space · 4px grid ---------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px;

  /* radius */
  --radius-sm:   8px;    /* buttons / inputs (~6–8) */
  --radius-md:   10px;   /* cards */
  --radius-pill: 999px;  /* chips / pills */

  /* §5 shadows — soft, blue-tinted */
  --shadow-sm: 0 1px 2px rgba(28,106,141,.08);
  --shadow-md: 0 6px 18px rgba(28,106,141,.10);
  --shadow-lg: 0 18px 40px rgba(28,106,141,.14);

  /* layout widths */
  --container-marketing: 1200px;
  --container-app:        800px;
  --container-app-wide:  1100px;

  /* §7 motion */
  --dur-fast: .2s;
  --dur:      .3s;
  --dur-fade: .5s;

  /* chrome */
  --topbar-h: 60px;

  /* ---------- semantic defaults = MARKETING surface (§1) ---------- */
  --page-bg:      var(--vr-cream);
  --accent:       var(--vr-blue-700);   /* borders, hovers, eyebrows */
  --link:         var(--vr-action);     /* text links */
  --cta:          var(--vr-action);     /* primary buttons */
  --hairline:     var(--vr-hairline);
  --focus-ring:   rgba(28,106,141,.40);
}

/* ---------- §1 Product-accent scopes (retint only) ---------- */
.vr-app-marketing {
  --page-bg: var(--vr-cream);
  --accent:  var(--vr-blue-700);
  --link:    var(--vr-action);
  --cta:     var(--vr-action);
  --hairline:var(--vr-hairline);
  --focus-ring: rgba(28,106,141,.40);
}
.vr-app-t9it {
  --page-bg: var(--vr-app-bg);
  --accent:  var(--vr-accent-t9it);
  --link:    var(--vr-accent-t9it);
  --cta:     var(--vr-accent-t9it);
  --hairline:var(--vr-hairline-2);
  --focus-ring: rgba(79,70,229,.40);
}
.vr-app-workshops {
  --page-bg: var(--vr-app-bg);
  --accent:  var(--vr-accent-workshops);
  --link:    var(--vr-accent-workshops);
  --cta:     var(--vr-accent-workshops);
  --hairline:var(--vr-hairline-2);
  --focus-ring: rgba(105,168,79,.40);
}
.vr-app-custom {
  --page-bg: var(--vr-app-bg);
  --accent:  var(--vr-accent-custom);
  --link:    var(--vr-accent-custom);
  --cta:     var(--vr-accent-custom);
  --hairline:var(--vr-hairline-2);
  --focus-ring: rgba(224,122,63,.40);
}
.vr-app-modules {
  --page-bg: var(--vr-app-bg);
  --accent:  var(--vr-accent-modules);
  --link:    var(--vr-accent-modules);
  --cta:     var(--vr-accent-modules);
  --hairline:var(--vr-hairline-2);
  --focus-ring: rgba(42,157,143,.40);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--vr-ink);
  background: var(--page-bg);
  padding-top: var(--topbar-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--vr-ink);
}

a { color: var(--link); text-decoration: none; }

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

/* ============================================================
   Foundations (§8 card · buttons · labels · inputs)
   ============================================================ */

/* §4 accent-colored eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
}

/* §8 one card everywhere */
.card {
  background: var(--vr-paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
}
.card--interactive {
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
  cursor: pointer;
}
.card--interactive:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* buttons — .button is the site's primary CTA convention */
.btn, .button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1;
  padding: var(--sp-4) var(--sp-8);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: filter var(--dur), border-color var(--dur), color var(--dur), background var(--dur);
}
.btn--primary, .button { background: var(--cta); color: #fff; }
.btn--primary:hover, .button:hover { filter: brightness(1.06); color: #fff; }
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--secondary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* §2 marketing CTAs are ALL-CAPS */
.vr-app-marketing .btn--primary,
.vr-app-marketing .button {
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* centered button group (replaces inline margins) */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-5);
}

/* forms */
.input, input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--vr-ink);
  background: var(--vr-paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

/* §7 states */
[disabled], .is-disabled { opacity: .45; cursor: not-allowed; }

a:focus-visible, button:focus-visible, .btn:focus-visible,
.solution-link:focus-visible, .member a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* animated 3px accent underline for marketing text links (§7) */
.link-underline { position: relative; color: var(--link); }
.link-underline::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 3px; background: var(--accent);
  transition: width var(--dur);
}
.link-underline:hover::after { width: 100%; }

/* ============================================================
   §11 Topbar / app-bar lockup
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--topbar-h);
  background: var(--vr-paper);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-5);
  z-index: 9999;
}
.topbar-logo { height: 36px; margin-right: var(--sp-3); }
.topbar-lockup { display: flex; flex-direction: column; line-height: 1.1; }
.topbar-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--accent);          /* wordmark tinted in product accent */
  text-decoration: none;
}
.topbar-title:hover, .topbar-title:focus, .topbar-title:active {
  text-decoration: none;
  color: var(--accent);
}
.topbar-company {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--vr-ink-faint);
}

/* ============================================================
   §6 Hero — full-bleed fixed photo, white text over scrim
   ============================================================ */
header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: var(--sp-12) var(--sp-5);
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(29,36,51,.45), rgba(29,36,51,.45)),
    url('imgs/workshop_background.png') center/cover no-repeat fixed;
  z-index: -1;
}
header .content { position: relative; z-index: 1; }
header h1 {
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;         /* §4 marketing hero is heavy + uppercase */
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: #fff;
  margin-bottom: var(--sp-6);
}
/* hero CTA uses the shared .button styles above */

/* §6 solid brand-blue contextual banner for inner pages */
.contextual-banner {
  background: var(--accent);
  color: var(--vr-cream);
  font-weight: var(--fw-semibold);
  text-align: center;
  padding: var(--sp-10) var(--sp-5);
  font-size: var(--fs-h3);
  border-bottom: 1px solid var(--vr-blue-800);
}

/* ============================================================
   Section wrapper
   ============================================================ */
.section {
  max-width: var(--container-marketing);
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-5);
}
.section h2 {
  text-align: center;
  font-size: var(--fs-h1);
  margin-bottom: var(--sp-10);
}
.section--center { text-align: center; }

/* constrained body copy */
.lead {
  max-width: 700px;
  margin: var(--sp-5) auto var(--sp-10);
  text-align: center;
  font-size: var(--fs-lg);
  color: var(--vr-ink-soft);
}
.prose {
  max-width: 800px;
  margin: 0 auto;
  color: var(--vr-ink-soft);
}
.prose p { margin-bottom: var(--sp-4); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--vr-ink); }
.prose a { color: var(--link); }
.prose a:hover { text-decoration: underline; }
.detail-list {
  max-width: 700px;
  margin: var(--sp-5) auto var(--sp-8);
  padding-left: var(--sp-5);
  list-style: disc;
  color: var(--vr-ink-soft);
}
.detail-list li { margin-bottom: var(--sp-2); }
.detail-list a { color: var(--link); }
.detail-list a:hover { text-decoration: underline; }

/* ============================================================
   Solutions — cards with a top icon (§8, §10)
   ============================================================ */
.solutions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-8);
}
.solutions .item {
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  background: var(--vr-paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.solutions .item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.solutions .item img { width: 200px; height: auto; }
.solutions .item h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
.solutions .item p { font-size: var(--fs-sm); color: var(--vr-ink-soft); }
/* clickable variant: anchor stretches the card's content column */
.solution-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

/* ============================================================
   Testimonials — cross-fade (§7)
   ============================================================ */
.testimonials {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: var(--sp-3);
}
.testimonial-track { position: relative; height: 100%; }
.testimonial {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity var(--dur-fade) ease-in-out;
  text-align: center;
  padding: var(--sp-5);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  color: var(--vr-ink);
}
.testimonial.active { opacity: 1; }
.testimonial_src {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-style: italic;
  font-weight: var(--fw-regular);
  color: var(--vr-ink-faint);
}

/* ============================================================
   Team — circular avatars, accent ring on hover (§7, §9)
   ============================================================ */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: var(--sp-6);
}
.member {
  flex: 1 1 200px;
  text-align: center;
  padding: var(--sp-5);
}
.member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--sp-3);
  transition: box-shadow var(--dur);
}
.member h3 { font-size: var(--fs-h3); transition: color var(--dur); }
.member a { color: inherit; display: flex; flex-direction: column; align-items: center; }
.member p { font-size: var(--fs-sm); color: var(--vr-ink-soft); }
.member a:hover img { box-shadow: 0 0 0 4px var(--accent); }
.member a:hover h3 { color: var(--accent); }

/* ============================================================
   Bio blocks (Meet the Team detail) — alternating rows
   ============================================================ */
.bio-block {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  margin-bottom: var(--sp-16);
}
.bio-block:nth-child(even) { flex-direction: row-reverse; }
.bio-block img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.bio-content { flex: 1; }
.bio-content h3 { font-size: var(--fs-h2); margin-bottom: var(--sp-1); }
.bio-content p.title {
  font-weight: var(--fw-bold);
  color: var(--vr-ink-soft);
  margin-bottom: var(--sp-3);
}
.bio-content p.desc { font-size: var(--fs-body); color: var(--vr-ink-soft); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--vr-paper);
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--vr-ink-soft);
}
.site-footer a { color: var(--link); }
.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  header h1 { font-size: var(--fs-h1); }

  .section { padding: var(--sp-12) var(--sp-5); }

  .solutions { flex-direction: column; align-items: center; }
  .solutions .item { width: 100%; max-width: 340px; }

  .testimonial { font-size: var(--fs-lg); padding: var(--sp-4); }
  .testimonial_src { font-size: var(--fs-xs); }

  .bio-block,
  .bio-block:nth-child(even) { flex-direction: column; text-align: center; }
  .bio-block img { margin-bottom: var(--sp-5); }
}

/* ============================================================
   Accessibility — reduced motion (§7 quality floor)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  header::before { background-attachment: scroll; }
}
