/* Challis Consulting — site styles. Brand: Ink #2B2F36, Accent #1E6FB5, Paper #F6F6F4, Manrope. */
:root {
  --ink: #2B2F36;
  --ink-soft: #565c66;
  --accent: #1E6FB5;
  --accent-dark: #17578f;
  --paper: #F6F6F4;
  --card: #ffffff;
  --rule: #e2e2de;
  --max: 1080px;
  --radius: 10px;
  font-size: 17px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff !important; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent) !important; }
.btn.ghost:hover { background: var(--accent); color: #fff !important; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 88px 0 96px; }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; margin: 0 0 18px; max-width: 18ch; letter-spacing: -0.01em; }
.hero p { font-size: 1.15rem; color: #d5d8dd; max-width: 56ch; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.ghost { border-color: #fff; color: #fff !important; }
.hero .btn.ghost:hover { background: #fff; color: var(--ink) !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.hero .eyebrow { color: #7fb3e3; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.15rem; margin: 0 0 8px; }
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 62ch; margin: 0 0 40px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--paper); }
.card p { margin: 0; color: var(--ink-soft); }
.card .icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(30,111,181,.1); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; color: var(--ink-soft); }
.ticks li { padding-left: 22px; position: relative; margin: 4px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.split { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: start; }
.panel { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; }
.panel h3 { color: #fff; }
.panel p { color: #d5d8dd; margin: 0 0 18px; }

/* Contact */
.contact-box { display: grid; gap: 22px; grid-template-columns: 1.3fr 1fr 1fr; }
.contact-box .card a.big { font-size: 1.1rem; font-weight: 700; text-decoration: none; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h1 { font-weight: 800; font-size: 2.1rem; margin: 0 0 8px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: .92rem; }

/* Footer */
.site-footer { background: var(--ink); color: #b9bdc4; padding: 40px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer img { height: 34px; width: auto; }
.site-footer a { color: #d5d8dd; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr 1fr; }
  .contact-box .card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .grid, .contact-box { grid-template-columns: 1fr; }
  :root { font-size: 16px; }
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 36px; }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 60px 0 68px; }
  section { padding: 56px 0; }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
