/* Cape Fear Solutions LLC
   Light editorial system. Weight-300 display type, navy headings, copper accent,
   blue-tinted layered shadows, conservative radii. No JS, no third-party origins,
   no inline styles: CSP is script-src 'none' and style-src 'self'. */

:root {
  --ink: #0e2237;
  --ink-2: #273951;
  --body: #4a5b6d;
  --muted: #7b8a99;
  --line: #e3e9ef;
  --line-2: #d3dce5;
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --navy: #0e2237;
  --navy-2: #16324f;
  --navy-deep: #0a1829;
  --copper: #9a6b2f;
  --copper-2: #b8843f;
  --copper-soft: #f3ebdf;
  --focus: #1f6feb;
  --wrap: 1120px;
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 8px;
  --sh-1: 0 3px 6px rgba(23,23,23,0.06);
  --sh-2: 0 15px 35px rgba(23,23,23,0.08);
  --sh-3: 0 30px 45px -30px rgba(14,34,55,0.28), 0 18px 36px -18px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 var(--r-2) 0;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: block; margin-top: 1px; }
.brand-text {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.site-header nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-header nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; letter-spacing: 0.005em;
}
.site-header nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 9px 16px; border-radius: var(--r-1);
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--navy-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 15.5px; font-weight: 500; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-1);
  text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-2); border-color: var(--copper-2); box-shadow: var(--sh-2); }
.btn-solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-solid:hover { background: var(--navy-2); box-shadow: var(--sh-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-quiet-dark { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet-dark:hover { border-color: var(--ink); background: var(--bg-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(154,107,47,0.28), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(22,50,79,0.9), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff;
  padding: 108px 0 104px;
}
/* Quiet engineering grid, drawn in CSS. Reads as infrastructure without a stock photo. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0.9), transparent 70%);
}
.hero .wrap { position: relative; }
.eyebrow {
  margin: 0 0 22px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #d9b57a;
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.6vw, 62px);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.028em;
  max-width: 17ch;
}
.hero h1 .tone { color: #d9b57a; font-weight: 400; }
.lede {
  margin: 26px 0 0; max-width: 60ch;
  font-size: clamp(17px, 1.9vw, 20px); font-weight: 300; line-height: 1.55;
  color: rgba(255,255,255,0.82);
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: grid; gap: 14px 40px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.hero-foot p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.hero-foot strong { display: block; color: #fff; font-weight: 500; margin-bottom: 3px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy-deep); color: rgba(255,255,255,0.8); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.kicker {
  display: inline-block; margin: 0 0 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--copper);
}
.section-dark .kicker { color: #d9b57a; }
.section h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.022em;
}
.section h2 .tone { color: var(--copper); font-weight: 400; }
.section-dark h2 .tone { color: #d9b57a; }
.section-lede {
  margin: 18px 0 0; max-width: 62ch;
  font-size: 18px; font-weight: 300; line-height: 1.55; color: var(--body);
}
.section-dark .section-lede { color: rgba(255,255,255,0.75); }
.section p { color: var(--body); }
.narrow p { font-size: 18px; font-weight: 300; line-height: 1.6; }
.narrow p + p { margin-top: 18px; }

/* ---------- Service cards ---------- */
.cards-wrap { container-type: inline-size; }
.cards {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@container (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.card {
  position: relative;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 30px 28px 28px;
  box-shadow: var(--sh-1);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); border-color: var(--line-2); }
.card-num {
  display: block; margin-bottom: 18px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--copper); font-variant-numeric: tabular-nums;
}
.card h3 {
  font-size: 19.5px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3;
  margin-bottom: 12px;
}
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--body); }

/* ---------- Principles ---------- */
.principles {
  display: grid; gap: 40px 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle h3 {
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px;
}
.principle h3::before {
  content: ""; display: block; width: 28px; height: 2px;
  margin-bottom: 16px; background: var(--copper); border-radius: 1px;
}
.principle p { margin: 0; font-size: 16px; line-height: 1.6; }

/* ---------- Process (dark band) ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: none; }
}
.step {
  counter-increment: step;
  padding: 28px 22px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 900px) {
  .step { border-bottom: none; border-top: 1px solid rgba(255,255,255,0.14); padding-right: 26px; }
  .step + .step { border-left: 1px solid rgba(255,255,255,0.10); padding-left: 24px; }
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  color: #d9b57a; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.72); }

/* ---------- About ---------- */
.about-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.about-side {
  border-left: 2px solid var(--copper);
  padding-left: 22px;
}
.about-side p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.about-side p + p { margin-top: 14px; }
.about-side strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 44px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.contact-intro p { font-size: 18px; font-weight: 300; line-height: 1.6; }
.contact-intro .fine { font-size: 14.5px; margin-top: 22px; color: var(--muted); font-weight: 400; }

.contact-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: 30px; box-shadow: var(--sh-2);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-1);
  padding: 12px 13px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: none; border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(154,107,47,0.18);
}
.contact-form button { justify-self: start; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Standalone pages ---------- */
.eyebrow-dark {
  margin: 0 0 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--copper);
}
.contact-block .btn { margin-right: 10px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.7);
  padding: 44px 0 40px; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  align-items: center; justify-content: space-between;
}
.site-footer p { margin: 0; font-size: 14.5px; }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .fine { color: rgba(255,255,255,0.55); }

/* ---------- Motion (progressive, respects reduced motion) ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 8px 0; padding-block: 10px; }
  .site-header nav { gap: 6px 14px; flex-basis: 100%; align-items: center; }
  .site-header nav a { font-size: 14px; }
  .nav-cta { padding: 7px 12px; font-size: 13.5px; margin-left: auto; }
  .hero { padding: 76px 0 70px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .contact-form { padding: 22px; }
}
