/* Midlands Trade Association
   Built to mta-brand-standards.md. Navy carries the weight, one blue does the
   work, Paper does the rest. 8px base unit. Flat fills, no gradients, no shadows. */

:root {
  /* Color — section 2 */
  --navy:   #141B4D;
  --blue:   #2A6CB2;   /* accent: buttons, links, rules, active states only */
  --blue-d: #21568C;   /* hover only, same hue */
  --sky:    #79B0E3;   /* seasoning, never text */
  --paper:  #F7F6F3;
  --ink:    #111111;
  --line:   #D8D6D1;
  --ink-soft: #5C594F; /* small/caption gray, passes AA on Paper */

  /* Type — section 3 */
  --head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space — 8px base unit, section 5 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s6: 48px; --s8: 64px; --s12: 96px;
  --pad-section: 48px;
  --wrap: 1120px;
  --gutter: 24px;
  --radius: 2px;
}

@media (min-width: 900px) { :root { --pad-section: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 700px) { body { font-size: 18px; } }

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

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--navy);
  margin: 0 0 var(--s3);
  text-wrap: balance;
}

h1 { font-size: 36px; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: 26px; font-weight: 700; line-height: 1.15; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 600; }

@media (min-width: 700px) {
  h1 { font-size: 60px; }
  h2 { font-size: 38px; }
  h3 { font-size: 23px; }
}

p { margin: 0 0 var(--s3); max-width: 68ch; }   /* measure cap, section 3 */
p:last-child { margin-bottom: 0; }

.lede { font-size: 19px; line-height: 1.5; }
@media (min-width: 700px) { .lede { font-size: 22px; } }

.small, .note { font-size: 15px; color: var(--ink-soft); }
.note { font-style: italic; }                    /* the one sanctioned italic */

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }

ul { max-width: 68ch; }
li { margin-bottom: var(--s1); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow > * { max-width: 780px; }   /* cap the measure, keep the left edge */

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: var(--s1); z-index: 100;
  background: var(--navy); color: var(--paper); padding: 12px 16px;
}

/* ---------- Buttons — the entire button system, section 5 ---------- */

.btn {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 16px 32px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background-color .12s linear, border-color .12s linear;
}
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }

.btn-2 {                     /* secondary: 2px navy outline on transparent */
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-2:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.btn-sm { padding: 10px 20px; font-size: 15px; }

/* Reversed out of a navy field */
.on-navy .btn-2 { color: var(--paper); border-color: var(--paper); }
.on-navy .btn-2:hover { background: var(--paper); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* Narrow phones: let long button labels wrap rather than blow the gutter */
@media (max-width: 460px) {
  .btn { white-space: normal; padding: 14px 20px; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Header — navy field, quiet nav, one accent button right ---------- */

.site-header { background: var(--navy); color: var(--paper); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); padding-block: var(--s2);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.logo img { display: block; width: 52px; height: auto; }
.logo .wordmark {                       /* reset wordmark, section 4.3 */
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 9em;
}
@media (min-width: 992px) {
  .logo img { width: 62px; }
  .logo .wordmark { font-size: 16px; max-width: none; }
}

.nav { display: flex; align-items: center; gap: var(--s3); }
.nav-links { display: none; gap: var(--s3); }
@media (min-width: 1120px) { .nav, .nav-links { gap: var(--s4); } }
.nav a {
  font-family: var(--head);
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; color: var(--paper);
  padding-block: 4px; white-space: nowrap;
}
.nav a:hover { color: var(--sky); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sky); }

@media (min-width: 992px) { .nav-links { display: flex; } }

.menu { position: relative; }
@media (min-width: 992px) { .menu { display: none; } }
.menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-family: var(--head); font-size: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.02em;
  border: 2px solid var(--paper); border-radius: var(--radius); padding: 8px 16px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--paper); color: var(--navy); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; z-index: 60;
  background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius);
  padding: var(--s1) 0; display: flex; flex-direction: column;
}
.menu-panel a {
  padding: 12px 16px; color: var(--navy);
  font-family: var(--head); font-weight: 600; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
}
.menu-panel a:hover { background: var(--paper); color: var(--blue); }

.header-cta { display: none; padding: 12px 20px; font-size: 15px; }
@media (min-width: 768px) { .header-cta { display: inline-block; } }

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

section { padding-block: var(--pad-section); }
section + section { border-top: 1px solid var(--line); }   /* hairline dividers */

.section-label {
  font-family: var(--head); font-weight: 600; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 var(--s2);
}

/* ---------- Hero — full-bleed navy field, headline reversed out ---------- */

.hero {
  background: var(--navy);
  color: var(--paper);
  padding-block: var(--s8);
  border-top: none;
}
@media (min-width: 900px) { .hero { padding-block: 120px; } }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: #E8E7E2; }
.hero .lede { max-width: 52ch; }
.hero + section { border-top: none; }

/* Next-session strip — Sky, used once per page and nowhere else */

.strip { background: var(--sky); color: var(--navy); padding-block: var(--s4); }
.strip .section-label { color: var(--navy); }
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3) var(--s6);
}
.strip h2 { margin-bottom: 4px; }
.strip .meta { margin: 0; color: var(--navy); }

/* ---------- Grids ---------- */

.cols { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.cols > div { border-top: 2px solid var(--navy); padding-top: var(--s3); }
.cols h3 { margin-bottom: var(--s2); }

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.timeline li {
  position: relative; margin: 0;
  border-left: 1px solid var(--line);
  padding: 0 0 var(--s4) var(--s4);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 9px;
  width: 9px; height: 9px; background: var(--blue);
}
.timeline b {
  display: block; font-family: var(--head); font-weight: 600;
  font-size: 21px; line-height: 1.2; color: var(--navy); margin-bottom: 4px;
}

/* ---------- Topic list ---------- */

.topics { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s4); padding: 0; }
.topics li {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 8px 16px; font-size: 15px;
}

/* ---------- Q&A ---------- */

.qa { border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s4); }
.qa:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.qa h3 { margin-bottom: var(--s2); }

/* ---------- Cards ---------- */

.card { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: var(--s4); }
@media (min-width: 700px) { .card { padding: var(--s6); } }
.card .meta { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.card .meta-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: var(--s3); }

.callout { border-left: 2px solid var(--blue); background: #fff; padding: var(--s3); border-radius: var(--radius); }

/* ---------- Forms ---------- */

.field { margin-bottom: var(--s3); max-width: 640px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: var(--s1); color: var(--navy); }
.field .hint { font-weight: 400; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 160px; resize: vertical; }

.hp { position: absolute; left: -9999px; }

.signup { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); max-width: 640px; }
.signup input[type="email"] { flex: 1 1 260px; }
.signup .btn { flex: 0 0 auto; }

/* ---------- Footer — navy field, no sitemap sprawl ---------- */

.site-footer { background: var(--navy); color: var(--paper); padding-block: var(--s8); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sky); }
.site-footer .mission {
  font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.15;
  color: #fff; max-width: 20ch; margin: 0 0 var(--s3);
}
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.1fr 1fr; } }
.site-footer input[type="email"] { background: #0E1338; border-color: #39406B; color: #fff; }
.site-footer input::placeholder { color: #9AA0BE; }
.colophon {
  border-top: 1px solid #39406B; margin-top: var(--s6); padding-top: var(--s3);
  font-size: 15px; color: #B9BDD1;
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); justify-content: space-between;
}

/* ---------- Utilities ---------- */

.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mb-4 { margin-bottom: var(--s4); }

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