/* Brevity Consulting - styles
   Design tokens from brief section 3. Palette pulled from the logo; no new colors introduced. */

:root {
  --navy:  #16263F;  /* header, headings, footer bg, primary button */
  --gold:  #C7913B;  /* accent - one per section max */
  --slate: #5A6B82;  /* sub-labels, secondary text */
  --ink:   #1A1A1A;  /* body copy */
  --paper: #FFFFFF;  /* page background */
  --mist:  #F4F6F9;  /* alternating section background */

  --maxw: 1080px;
  --maxw-narrow: 760px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-weight: 700; color: var(--navy); line-height: 1.25; }

a { color: var(--navy); }
a:focus-visible,
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: var(--maxw-narrow); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid #e6e9ef;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo img { width: 170px; height: auto; }
.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 400;
  margin-left: 28px;
  font-size: 0.98rem;
}
.nav a:hover { color: var(--gold); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-mist { background: var(--mist); }

.section-label {
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin: 0 0 8px;
}
/* one gold accent per section: a small underline under the label */
.section-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}
.section-intro { color: var(--slate); margin: 0 0 32px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: 104px 0 96px; }
.hero h1 { font-size: 2.6rem; margin: 0 0 20px; max-width: 18ch; }
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 0 32px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--gold); color: var(--navy); }

/* ---------- services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: var(--paper);
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 28px;
}
.card h2 { font-size: 1.2rem; margin: 0 0 10px; }
.card p { margin: 0; color: var(--ink); }

/* ---------- how we work ---------- */
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}
.principles h2 { font-size: 1.15rem; margin: 0 0 6px; }
.principles p { margin: 0; color: var(--slate); }

/* ---------- about ---------- */
#about p { font-size: 1.08rem; margin: 0 0 20px; }
#about p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-line { font-size: 1.15rem; margin: 0 0 28px; }
.contact-detail { margin: 0 0 14px; }
.contact-detail .muted { color: var(--slate); display: inline-block; min-width: 84px; }
.contact-detail:first-of-type { margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd6e4;
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { margin: 0; color: #cdd6e4; max-width: 36ch; }
.footer-legal { text-align: right; }
.footer-legal p { margin: 0 0 8px; font-size: 0.9rem; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--gold); }

/* ---------- responsive: single column under 768px ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 2rem; }
  .hero .lede { font-size: 1.08rem; }

  .cards { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }

  .header-inner { min-height: 56px; }
  .nav a { margin-left: 16px; font-size: 0.9rem; }
  .logo img { width: 140px; }

  .footer-inner { flex-direction: column; }
  .footer-legal { text-align: left; }
}

@media (max-width: 380px) {
  .nav a { margin-left: 12px; font-size: 0.82rem; }
}
