/* MWED brand tokens (build contract INV-5): font Lato, accent #043980, text #666 on white. */
:root {
  --navy: #043980;
  --navy-dark: #032a5e;
  --ink: #666666;
  --ink-strong: #333333;
  --white: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #e2e7ee;
  --maxw: 1120px;
  --radius: 6px;
  --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* MWED WS1 — foundation stylesheet + 7-component grammar.
   Faithful-structure clone of dobusinessinmontana.com (Mode A, $899 tier).
   Components: hero, textImgBand, tileGrid, townGrid, statBand, navyCTABand, photoBand.
   Phase 2 stubs at bottom of file.
   created: 2026-07-15 · created_by: cloudflare-devops (DO)
   updated: 2026-07-20 · updated_by: frontend-developer (FD) — Phase 1 component grammar */

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

/* ── reset + base ──────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink-strong); font-weight: 900; line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--navy); margin: 0 0 .5rem; }
.muted { color: #8a94a3; }

/* ── utility bar ───────────────────────────────────────────────────────────── */
.util-bar { background: var(--navy-dark); color: #cfe0ff; font-size: .85rem; }
.util-bar__inner { display: flex; gap: 1.5rem; justify-content: flex-end; padding: .4rem 1.25rem; }
.util-bar a { color: #cfe0ff; text-decoration: none; }
.util-bar a:hover { color: #fff; }

/* ── header + nav ──────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 900; color: var(--navy); text-decoration: none; font-size: 1.05rem; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--ink-strong); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--navy); }

/* ── buttons ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; font-size: .95rem; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn--secondary { background: transparent; color: #fff; border-color: #fff; }
.btn--secondary:hover { background: rgba(255,255,255,.12); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── section wrapper ───────────────────────────────────────────────────────── */
.section { padding: 3rem 0; }

/* ── prose (contentSection) ────────────────────────────────────────────────── */
.content-body { padding-top: 2.25rem; }
.prose { max-width: 74ch; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { margin: 1.8rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.2rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose a { text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ── COMPONENT 1: hero ─────────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero--photo {
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(4,57,128,.82) 45%, rgba(4,57,128,.45));
  pointer-events: none;
}
.page-hero__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.page-hero h1 { color: #fff; max-width: 36ch; }
.page-hero .eyebrow { color: #a9c6ff; }
.hero-sub { color: #d6e2f7; font-size: 1.15rem; margin: .5rem 0 0; max-width: 52ch; }
.hero-details { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hero-details li { font-size: .95rem; color: #d6e2f7; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-graphic-wrap { flex: 0 0 auto; }
.hero-graphic { max-width: 320px; max-height: 260px; object-fit: contain; }

/* ── COMPONENT 2: textImgBand (tib) ─────────────────────────────────────────── */
.tib-section { background: var(--white); }
.tib-section--alt { background: var(--bg-alt); }
.tib { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.tib--image-left .tib__img { order: -1; }
.tib__img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tib__body h2 { margin-bottom: .75rem; }
.tib__body p { color: var(--ink); margin: 0 0 1.1rem; }
.tib__cta { margin-top: 1.25rem; }

/* ── COMPONENT 3: tileGrid ──────────────────────────────────────────────────── */
.tile-grid-section { background: var(--white); }
.tile-grid-section--alt { background: var(--bg-alt); }
.tile-grid-section--navy { background: var(--navy); }
.tile-grid__header { text-align: center; margin-bottom: 2rem; }
.tile-grid__header .eyebrow { justify-content: center; }
.tile-grid { display: grid; gap: 1.5rem; }
.tile-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tile-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.tile--link {
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .12s;
}
.tile--link:hover { box-shadow: 0 4px 18px rgba(4,57,128,.12); transform: translateY(-2px); }
.tile__img-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: calc(var(--radius) - 2px); margin-bottom: .5rem; }
.tile__icon { font-size: 2rem; }
.tile__title { font-size: 1.05rem; font-weight: 900; color: var(--navy); margin: 0; }
.tile__body { font-size: .93rem; color: var(--ink); flex: 1; }
.tile__cta { font-size: .88rem; font-weight: 700; color: var(--navy); }

/* ── COMPONENT 4: townGrid ──────────────────────────────────────────────────── */
.town-grid-section { background: var(--white); }
.town-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.town {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: .75rem; align-items: flex-start;
}
.town__name { font-weight: 900; color: var(--navy); font-size: 1.05rem; margin: 0; }
/* Trailing HTML styles (Treasure State + photo strip) */
.town-grid__trailing { margin-top: 2.5rem; }
.treasure-state { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.treasure-state .mt-state-icon { width: 100px; flex-shrink: 0; }
.treasure-state p { color: var(--ink); margin: 0; }
.town-photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.town-photo-strip img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── COMPONENT 5: statBand ──────────────────────────────────────────────────── */
.stat-band { text-align: center; }
.stat-band--gray { background: var(--bg-alt); }
.stat-band--navy { background: var(--navy); color: #fff; }
.stat-band--navy .stat-band__heading { color: #fff; }
.stat-band--navy .stat__label { color: #a9c6ff; }
.stat-band__heading { margin-bottom: 1.5rem; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat__value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--navy); }
.stat-band--navy .stat__value { color: #fff; }
.stat__label { font-size: .9rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }

/* ── COMPONENT 6: navyCTABand ──────────────────────────────────────────────── */
.navy-cta { background: var(--navy); color: #fff; }
.navy-cta__inner { text-align: center; max-width: 800px; margin: 0 auto; }
.navy-cta h2 { color: #fff; margin-bottom: .5rem; }
.navy-cta__eyebrow { color: #a9c6ff; }
.navy-cta__sub { color: #d6e2f7; font-size: 1.05rem; margin: .25rem 0 0; }
.navy-cta__btn { margin-top: 1.5rem; }
/* two-column variant (Get Started footer band) */
.navy-cta__cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; margin-top: 2rem; text-align: left;
}
.navy-cta__col h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.navy-cta__col a { display: block; color: #a9c6ff; text-decoration: none; padding: .2rem 0; font-size: .95rem; }
.navy-cta__col a:hover { color: #fff; }

/* ── COMPONENT 7: photoBand ─────────────────────────────────────────────────── */
.photo-band {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 340px;
  display: flex; align-items: center;
  overflow: hidden;
}
.photo-band__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(4,57,128,.78) 35%, rgba(4,57,128,.45));
  pointer-events: none;
}
.photo-band__inner {
  position: relative; z-index: 1;
  padding: 3.5rem 0;
  max-width: 640px;
}
.photo-band__heading { color: #fff; font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: .5rem; }
.photo-band__sub { color: #d6e2f7; font-size: 1.05rem; max-width: 52ch; margin: 0 0 1.5rem; }
.photo-band__cta { margin-top: 1.25rem; }

/* ── commerce stub / reserved slots ─────────────────────────────────────────── */
.commerce-stub { margin: 2rem auto; max-width: var(--maxw); padding: 1.5rem 1.25rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.commerce-stub__badge { display: inline-block; background: #e7edf6; color: var(--navy); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 100px; margin: 0 0 .5rem; }
.embed-slot { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; background: #fff; }

/* ── static form clones ──────────────────────────────────────────────────────── */
.static-form { max-width: 40rem; margin: 1.5rem auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-row { display: block; margin: 0 0 1rem; }
.form-row span { display: block; font-weight: 700; color: var(--ink-strong); margin: 0 0 .3rem; font-size: .9rem; }
.form-row input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #f8fafc; }
.static-form__note { font-size: .82rem; color: #8a94a3; margin: .5rem 0 0; }
.turnstile-slot { margin: 1rem 0; }
.cf-turnstile { min-height: 65px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #8a94a3; font-size: .82rem; background: #fbfcfe; }
.cf-turnstile::after { content: 'Turnstile (reserved)'; }

/* ── footer ──────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: #cfe0ff; margin-top: 2rem; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2.5rem 1.25rem; }
.footer-org__name { font-weight: 900; color: #fff; margin: 0 0 .5rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-col h4 { color: #fff; margin: 0 0 .6rem; font-size: .95rem; }
.footer-col a { display: block; color: #cfe0ff; text-decoration: none; padding: .15rem 0; }
.footer-col a:hover { color: #fff; }
.site-footer a { color: #cfe0ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; padding: .9rem 0; }

/* ── PHASE 2 stubs (replaced per-family in Phase 2; placeholders listed for completeness) ── */
/* program-overview + program-detail: sidebar nav + section tabs → Phase 2 */
/* peer-roundtable: leader bios + cohort cards → Phase 2 */
/* training-detail: schedule table + event-info card → Phase 2 */
/* event-reg-form: multi-step form + Turnstile → Phase 2 */
/* resource-index: filterable resource cards → Phase 2 */
/* event-invite: invite card + RSVP → Phase 2 */
/* about: staff cards + board roster grid → Phase 2 */
/* members: tier cards + benefits table + directory + commerce form → Phase 2 */
/* contact: contact card + map embed + form → Phase 2 */
/* legal: standard prose → Phase 2 */
/* event-announcement: event card + commerceStub → Phase 2 */
/* masterclass-index: course catalog grid → Phase 2 */
/* listing-stub / embed-listing-stub / payment / gate / empty-archive → Phase 2 */
.section-stub { border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; background: var(--bg-alt); }
.section-stub__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a94a3; margin-bottom: .5rem; }

/* ── responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tib { grid-template-columns: 1fr; }
  .tib--image-left .tib__img { order: 0; }
  .tile-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tile-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
  .town-grid { grid-template-columns: repeat(2, 1fr); }
  .navy-cta__cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .treasure-state { flex-direction: column; gap: 1rem; }
  .hero-graphic { max-width: 220px; }
}
@media (max-width: 600px) {
  .page-hero--photo { min-height: 340px; }
  .tile-grid--cols-3, .tile-grid--cols-2 { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: 1fr; }
  .town-photo-strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .util-bar__inner { justify-content: center; gap: 1rem; }
  .nav { gap: .9rem; }
  .hero-graphic-wrap { display: none; }
  .hero-ctas { flex-direction: column; }
  .stats { gap: 2rem; }
}

