/* MTI Sessions — shared stylesheet (draft)
   Palette taken from markettraders.com Elementor global colors (see SOURCES.md).
   Brand blue #1D97D4 is used for decoration only; text links use a darker
   shade (#1E6F9A) so they meet WCAG AA contrast on white. */

:root {
  --navy: #184171;        /* markettraders.com header / dark brand */
  --blue: #1D97D4;        /* markettraders.com primary */
  --blue-dark: #1E6F9A;   /* darkened primary for accessible text links */
  --blue-light: #E5F3FF;  /* markettraders.com light tint */
  --surface: #F3F7FA;     /* markettraders.com light background */
  --text: #222222;        /* markettraders.com body text */
  --muted: #475467;
  --border: #D7DEE5;
  --footer-link: #8ED1FC;
  --green-dark: #08793B;  /* darkened markettraders.com accent #0AAE55 for AA contrast with white text */
  --banner-bg: #FFF4D6;
  --banner-text: #5C3D00;
  --maxw: 68rem;
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #FFFFFF;
}

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

a { color: var(--blue-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #FFFFFF;
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #FFFFFF;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-head);
  line-height: 1.1;
}
.wordmark:hover { color: #FFFFFF; }
.wordmark-bars { display: inline-flex; align-items: flex-end; gap: 4px; height: 26px; }
.wordmark-bars span {
  display: block;
  width: 5px;
  background: var(--blue);
  transform: skewX(-22deg);
  border-radius: 1px;
}
.wordmark-bars span:nth-child(1) { height: 10px; }
.wordmark-bars span:nth-child(2) { height: 18px; }
.wordmark-bars span:nth-child(3) { height: 26px; }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark-name { font-size: 1.35rem; letter-spacing: 0.01em; }
.wordmark-name strong { font-weight: 700; }
.wordmark-name span { font-weight: 400; }
.wordmark-sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #D6E2EE; margin-top: 0.2rem; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--blue); color: #FFFFFF; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }

/* ---------- Draft banner ---------- */
.draft-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  border-bottom: 1px solid #E8D59F;
  font-weight: 600;
  font-size: 0.95rem;
}
.draft-banner .container { padding-top: 0.6rem; padding-bottom: 0.6rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #12345C 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 3.75rem;
}
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--footer-link);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.hero p { max-width: 40rem; font-size: 1.125rem; color: #E9F1F8; margin: 0 0 1rem; }
.hero .note {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border-left: 4px solid var(--blue);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 600;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0 1.75rem;
}
.page-head h1 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.4rem;
}
.page-head p { margin: 0; color: var(--muted); }

/* ---------- Content ---------- */
main { display: block; }
.section { padding: 2.75rem 0; }
.section-alt { background: var(--surface); }

.prose { max-width: 46rem; }
.container.prose { max-width: var(--maxw); }
.container.prose > * { max-width: 46rem; }
.prose h2, .section h2 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 2rem 0 0.6rem;
}
.prose h2:first-child, .section h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.caps { text-transform: none; font-weight: 600; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1rem;
}
.card h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.card p { margin: 0 0 0.6rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 0.9rem; }
.contact-list .label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
address { font-style: normal; }

.todo {
  display: inline-block;
  background: #FFE8E3;
  color: #8A1C07;
  border: 1px dashed #C2410C;
  padding: 0.1rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
}

.callout {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.meta { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #D6E2EE;
  font-size: 0.95rem;
  padding: 2rem 0 1.75rem;
  margin-top: 0;
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #FFFFFF; }
.footer-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.footer-risk {
  margin: 0 0 0.75rem;
  color: #FFFFFF;
  font-weight: 600;
}
.footer-copy { margin: 0; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--green-dark); color: #FFFFFF; }
.btn-primary:hover { background: #075F31; color: #FFFFFF; }
.btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.btn-disabled { background: #E4E8EC; color: #4A5562; border-color: #C9D1D9; cursor: not-allowed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.lead { color: var(--muted); max-width: 46rem; margin-top: 0; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.cards-session { grid-template-columns: minmax(16rem, 28rem); }
.card-session p:last-child { margin-top: 1rem; }

/* ---------- GHL embed placeholder + form mockup ---------- */
.ghl-embed-placeholder {
  max-width: 40rem;
  border: 2px dashed var(--blue-dark);
  border-radius: 8px;
  background: #FFFFFF;
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.placeholder-label { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin: 0 0 0.4rem; }
.pending {
  background: var(--banner-bg);
  color: var(--banner-text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  margin: 0 0 1rem;
}
.form-mock .field { margin-bottom: 0.9rem; }
.form-mock label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.form-mock .optional { font-weight: 400; color: var(--muted); }
.form-mock input[type="text"], .form-mock input[type="email"], .form-mock input[type="tel"] {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #8C98A4;
  border-radius: 4px;
  background: #F7F9FB;
}
.form-mock .field-check { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-mock .field-check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.form-mock .field-check label { font-weight: 400; overflow-wrap: anywhere; }
.consent-line { margin: 0.5rem 0 0.75rem; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 0.25rem 1rem; }
  .hero { padding: 2.5rem 0 2.75rem; }
  .section { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Next-session line (filled server-side by the Worker) */
.session-when { font-weight: 600; color: var(--navy); }
