/* ===========================================================
   Cam Security Builders — Design Tokens
   Two divisions, one throughline: BUILDING.
   Construction builds structures. Wealth Builders builds capital.
   Blueprint grid + dimension marks carry that idea everywhere.
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --black: #0a0b0d;
  --panel: #15171a;
  --panel-2: #1c1f23;
  --steel: #8b929a;
  --steel-dim: #565c62;
  --safety: #e2572b;
  --gold: #c9a227;
  --gold-hi: #f1d57b;
  --cream: #f3efe6;
  --cream-dim: #a9a498;
  --line: rgba(243, 239, 230, 0.14);

  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Blueprint grid texture ---------- */
.blueprint {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Dimension line label (signature structural device) ---------- */
.dim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.dim::before, .dim::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1;
}
.brand-name span { display: block; font-size: 10px; font-family: var(--mono); letter-spacing: 0.2em; color: var(--cream-dim); margin-top: 4px; }

.site-nav { display: flex; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 8px 0;
  margin-left: 28px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--cream); }
.site-nav a.construction.active, .site-nav a.construction:hover { border-color: var(--safety); color: var(--steel); }
.site-nav a.wealth.active, .site-nav a.wealth:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--line);
  color: var(--cream);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
}
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn-steel { border-color: var(--steel-dim); }
.btn-steel:hover { background: var(--steel); border-color: var(--steel); color: var(--black); }
.btn-gold { border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn-solid-gold { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }
.btn-solid-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-solid-steel { background: var(--steel); border-color: var(--steel); color: var(--black); font-weight: 600; }
.btn-solid-steel:hover { background: #a4abb2; border-color: #a4abb2; }

/* ---------- Split hero (index) ---------- */
.split-hero {
  display: flex;
  min-height: calc(100vh - 76px);
  position: relative;
}
.split-panel {
  position: relative;
  display: flex;
  flex: 1 1 50%;
  align-items: flex-end;
  padding: 56px;
  overflow: hidden;
  text-decoration: none;
  transition: flex-grow 0.4s ease;
}
.split-panel.construction { background: linear-gradient(160deg, #1a1c1f, #101113 70%); border-right: 1px solid var(--line); }
.split-panel.wealth { background: linear-gradient(200deg, #17140a, #0a0b0d 70%); }
.split-panel .panel-grid { position: absolute; inset: 0; opacity: 0.5; }
.split-panel .panel-content { position: relative; z-index: 2; max-width: 460px; }
.split-panel .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; display: block; }
.split-panel.construction .eyebrow { color: var(--steel); }
.split-panel.wealth .eyebrow { color: var(--gold); }
.split-panel h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.92;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.split-panel p { color: var(--cream-dim); font-size: 16px; max-width: 380px; margin: 0 0 28px; }
.split-panel .go { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.split-panel.construction .go { color: var(--steel); }
.split-panel.wealth .go { color: var(--gold-hi); }
.split-panel .go .arrow { transition: transform 0.25s ease; }
.split-panel:hover .go .arrow { transform: translateX(6px); }
.split-panel:hover { flex-grow: 1.08; }

.hero-seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 148px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.hero-seam .badge {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px var(--black), 0 20px 60px rgba(0,0,0,0.6);
}
.hero-seam .badge img { width: 68px; height: 68px; }
.hero-top-label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}
.hero-top-label .name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero-top-label .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--cream-dim); margin-top: 6px; }

@media (max-width: 860px) {
  .split-hero { flex-direction: column; min-height: auto; }
  .split-panel { min-height: 62vh; padding: 40px 28px; align-items: flex-end; }
  .split-panel.construction { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-seam { display: none; }
  .hero-top-label { position: static; left: auto; transform: none; padding: 32px 0 0; }
}

@media (max-width: 640px) {
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; row-gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 15px; }
  .brand-name span { display: none; }
  .site-nav a { margin-left: 16px; font-size: 11px; }
}

/* ---------- Page header banner (division pages) ---------- */
.page-banner {
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-banner .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; display: inline-block; }
.page-banner h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6vw, 72px); line-height: 0.94; margin: 0 0 20px; text-transform: uppercase; }
.page-banner p.lede { color: var(--cream-dim); font-size: 18px; max-width: 620px; margin: 0; }
.theme-construction .eyebrow, .theme-construction .accent { color: var(--steel); }
.theme-wealth .eyebrow, .theme-wealth .accent { color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); text-transform: uppercase; margin: 10px 0 0; }

/* ---------- Service / info grid ---------- */
.grid-3, .grid-2 { display: flex; flex-wrap: wrap; background: var(--line); border: 1px solid var(--line); gap: 1px; }
.grid-3 .card { flex: 1 1 calc(33.333% - 1px); }
.grid-2 .card { flex: 1 1 calc(50% - 1px); }
.card { background: var(--panel); padding: 32px; min-width: 260px; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--cream-dim); margin-bottom: 14px; display: block; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; margin: 0 0 12px; }
.card p { color: var(--cream-dim); margin: 0; font-size: 15px; }
@media (max-width: 760px) { .grid-3 .card, .grid-2 .card { flex: 1 1 100%; } }

/* ---------- Fee table ---------- */
.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee-table th {
  text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--black); background: var(--gold); padding: 12px 16px;
}
.fee-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--cream-dim); }
.fee-table tr:nth-child(even) td { background: rgba(243,239,230,0.03); }
.fee-table td.fee { color: var(--gold-hi); font-family: var(--mono); }
.fee-table td.basis { font-family: var(--mono); font-size: 12px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--cream-dim); font-size: 15px;
}
.checklist li::before {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  border: 1px solid var(--gold); background: transparent;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 44px; color: var(--cream-dim); font-size: 15px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border: 1px solid var(--gold); color: var(--gold-hi);
  font-family: var(--mono); font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.theme-construction .steps li::before { border-color: var(--steel); color: var(--steel); }
.theme-construction .checklist li::before { border-color: var(--steel); }

/* ---------- Note / callout ---------- */
.note {
  border-left: 2px solid var(--gold); padding: 16px 22px; background: rgba(201,162,39,0.06);
  font-size: 14px; color: var(--cream-dim);
}
.note.steel { border-left-color: var(--steel); background: rgba(139,146,154,0.06); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 8px; }
input, textarea, select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--cream);
  padding: 12px 14px; font-family: var(--body); font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea { resize: vertical; min-height: 110px; }
.honeypot { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Downloads ---------- */
.download-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer .wrap > * { margin: 8px 0; }
.site-footer .cols { display: flex; flex-wrap: wrap; }
.site-footer .cols > div { margin-right: 40px; }
.site-footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); margin: 0 0 12px; }
.site-footer a { text-decoration: none; color: var(--cream-dim); font-size: 14px; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--cream); }
.legal-line { font-family: var(--mono); font-size: 11px; color: var(--cream-dim); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
