/* Brooks Builds Consulting — design tokens from the Brooks Builds Learning brand */

:root {
  --bg: #f3f3f3;
  --band: #ebebeb;
  --card-bg: #fff;
  --card-border: #d2d2d2;
  --text: #343a40;
  --text-muted: #495057;
  --accent: #006480;
  --accent-dark: #00495e; /* hover derivative of brand #006480; not in the official palette */
  --link: #1565c0; /* LMS link blue darkened one step: #1976d2 fails WCAG AA on the gray bands */
  --link-dark: #0d47a1;
  --radius: 8px;
  --font-mono:
    ui-monospace, "JetBrains Mono", "Fira Mono", menlo, consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Type ===== */

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
}

p + p {
  margin-top: 1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-dark);
}

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

.eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 46rem;
  margin-bottom: 2rem;
}

/* ===== Bands & sections ===== */

.band {
  background: var(--band);
}

.section {
  padding: 4.5rem 0;
}

/* ===== Header ===== */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

/* The LMS header presents the wordmark inside a white, thin-bordered box */
.brand {
  display: inline-flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
}

.brand-wordmark {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===== Hero ===== */

.hero {
  padding: 5rem 0;
  border-bottom: 1px solid var(--card-border);
}

.hero-sub {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ===== Checklists ===== */

.checklist {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.checklist li::before {
  /* plain fallback first: browsers without alt-text content syntax drop the second line */
  content: "\2713\0020";
  content: "\2713\0020" / "";
  color: var(--accent);
  font-weight: 700;
}

.hero-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Cards ===== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.callout {
  margin-top: 2rem;
  border-left: 4px solid var(--accent);
  background: var(--card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.75rem;
}

/* ===== Pillars ===== */

.pillar-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  margin-bottom: 0.75rem;
}

.pillar-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Engagement ladder ===== */

.ladder {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.ladder-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
}

.ladder-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.ladder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-note {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag-list li {
  background: var(--band);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== About ===== */

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.headshot-placeholder {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Closing CTA ===== */

.cta-card {
  max-width: 40rem;
  padding: 2.25rem;
  border-left: 4px solid var(--accent);
}

.cta-card .btn {
  margin-top: 1.75rem;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.social-list a:hover {
  opacity: 0.75;
}

/* ===== Responsive ===== */

@media (width <= 900px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 220px 1fr;
  }
}

/* the single-row header needs ~800px; wrap the nav below the logo row before it gets crushed */
@media (width <= 850px) {
  html {
    scroll-padding-top: 7.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .brand-wordmark {
    height: 22px;
  }

  .header-inner > .btn {
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 3;
    margin-left: 0;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 0.85rem;
  }
}

@media (width <= 700px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .headshot-placeholder {
    max-width: 260px;
  }

  .ladder-step {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.75rem;
  }

  .ladder-num {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
}

/* keep the brand box + button and the nav each on one row down to 360px-wide phones */
@media (width <= 400px) {
  .header-inner {
    gap: 0.75rem 0.5rem;
  }

  .brand {
    padding: 0.3rem 0.5rem;
  }

  .header-inner > .btn-small {
    padding: 0.5rem 0.7rem;
  }

  .site-nav {
    column-gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
