/* CE Consulting NC. Logo mark: assets/logo-mark.svg (draft, issue #6). */
:root {
  --ink: #14273d;
  --ink-soft: #3d4f63;
  --muted: #5f6f80;
  --paper: #fbfaf7;
  --tint: #f1eee7;
  --line: #ddd8cc;
  --accent: #1f7a68;
  --accent-dark: #17604f;
  --accent-soft: #e2f0ec;
  --error: #a3271f;
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 26ch; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgb(251 250 247 / .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; }
.wordmark-mark { display: block; width: 2.5rem; height: 2.5rem; flex: none; }
.wordmark-text { font-size: 1.1rem; }
.wordmark-nc { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.button) { color: var(--ink-soft); text-decoration: none; font-weight: 500; padding: .6rem 0; }
.site-nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 760px) {
  .site-nav a:not(.button) { display: none; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-small { min-height: 44px; padding: .45rem 1.05rem; font-size: .95rem; }
.button[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .9rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }
.muted, .note { color: var(--muted); }
.note { margin-top: 1.8rem; font-style: italic; }

.cards {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.1rem; border-top: 4px solid var(--accent);
}
.card p { color: var(--ink-soft); }

.columns { display: grid; gap: 2rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.columns p { color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700;
}
.steps p { color: var(--ink-soft); }

.people { display: grid; gap: 1.2rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.person { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.person > div:last-child { min-width: 0; }
.avatar {
  flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
}
.person h3 { margin-bottom: .1rem; }
.role { color: var(--accent-dark); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.person p { color: var(--ink-soft); }
.person .role { color: var(--accent-dark); }
.person-link { margin: 0; font-weight: 600; }
.person-link a { display: inline-block; padding: .6rem 0; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); min-width: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid #c8c2b4; border-radius: 10px;
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; min-height: 1.6em; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--accent-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #d6dde5; padding: 2rem 0; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; }

/* Inner pages (feedback, privacy) */
.page { min-height: 60vh; }
.narrow { max-width: 46rem; }
.page .contact-form { margin-top: 2rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.choice { border: 0; padding: 0; margin: 0 0 1.1rem; }
.choice legend { font-weight: 600; margin-bottom: .35rem; padding: 0; }
.choice-option { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.choice-option input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.form-note { font-size: .92rem; }
.done h2 { font-size: 1.6rem; }
[hidden] { display: none !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.field .choice-option { display: flex; font-weight: 500; margin: 0; }
.field .choice-option input { width: 1.2rem; height: 1.2rem; min-height: 0; padding: 0; flex: none; }
.wordmark-text, .button { white-space: nowrap; }
@media (max-width: 380px) {
  .wordmark-text { font-size: 1rem; }
  .wordmark-mark { width: 2.1rem; height: 2.1rem; }
  .button-small { padding-inline: .75rem; font-size: .88rem; }
  .header-inner { gap: .5rem; }
}
