/* ==========================================================================
   C Squared Industries — design system
   Brand: black #000000 · gold #e9cf9b · tan #bfa574 (Logo Parameters.docx)
   Type: Acrom (the logo typeface), self-hosted. Cream ground, gold accent,
   black kept as punctuation: the primary button, one band a page. The wordmark
   sits on the cream as dark-tan lettering (assets/brand/logo-wide-knockout.svg).
   ========================================================================== */

@font-face {
  font-family: "Acrom";
  src: url("fonts/Acrom-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Acrom";
  src: url("fonts/Acrom-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground:      #faf8f3;
  --surface:     #ffffff;
  --wash:        #f2efe9;
  --mute:        #f5f3f0;

  --ink:         #0d0d0d;
  --ink-soft:    #5f5a52;
  --ink-black:   #000000;

  --gold:        #bfa574;   /* tan, primary gold  */
  --gold-light:  #e9cf9b;   /* brand gold, accent */
  --gold-logo:   #b8975a;   /* the gold in the logo file */
  --gold-deep:   #8a6f3f;   /* gold that passes contrast as small text */

  --line:        #e2ddd5;
  --line-strong: #cfc7ba;

  --radius: 0.5rem;
  --font: "Acrom", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1140px;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p  { margin: 0 0 1.1em; max-width: var(--measure); }
a  { color: inherit; }
strong { font-weight: 700; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.5;
  color: #2a2a2a;
  max-width: 54ch;
}
.fine { font-size: 0.86rem; color: var(--ink-soft); }
em { font-style: normal; color: var(--gold-deep); }

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3rem, 7vw, 6rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.8rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.site-foot .brand img { height: 26px; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.8rem); font-size: 0.9rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-soft); padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font); font-size: 0.94rem; font-weight: 700;
  padding: 0.75rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink-black); color: var(--gold-light); }
.btn-primary:hover { background: #1a1a1a; }
.btn-gold { background: var(--gold); color: var(--ink-black); }
.btn-gold:hover { background: #cbb283; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.hero-aside { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
.hero-aside p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- numbered index ---------- */

.index-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 4vw, 3rem); align-items: baseline;
  padding-block: clamp(1.5rem, 4vw, 2.4rem);
  border-top: 1px solid var(--line); text-decoration: none;
  transition: background 0.2s ease;
}
.index-row:last-of-type { border-bottom: 1px solid var(--line); }
.index-row:hover { background: var(--surface); }
.index-row:hover .index-num { color: var(--gold); }
.index-row:hover .index-go { color: var(--ink); transform: translateX(4px); }
.index-num { font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.2rem); color: var(--line-strong); line-height: 1; transition: color 0.2s ease; font-variant-numeric: tabular-nums; }
.index-body h3 { margin-bottom: 0.3rem; }
.index-body p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 58ch; }
.index-go { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-soft); white-space: nowrap; transition: transform 0.2s ease, color 0.2s ease; }

/* ---------- cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 1.9rem); }
.card h3 { font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-deep); display: block; margin-bottom: 0.8rem; }
.card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: #333; font-size: 0.95rem; }
.card li { margin-bottom: 0.35rem; }

/* Contact page: two cards, centered, the email never wider than its card. */
.contact-cards { max-width: 760px; text-align: center; }
.contact-cards .card { padding-block: clamp(1.6rem, 3vw, 2.2rem); }
.contact-cards .card p { margin-inline: auto; }
.contact-cards .card h3 { overflow-wrap: anywhere; font-size: clamp(1rem, 2.8vw, 1.15rem); }

/* ---------- black band ---------- */

.band { background: var(--ink-black); color: #efe7d6; }
.band h2 { color: #fff; }
.band p  { color: #bcb5a6; }
.band .eyebrow { color: var(--gold-light); }
.band .eyebrow::after { background: #2a2a2a; }
.band .btn-ghost { border-color: #3a3a3a; color: #efe7d6; }
.band .btn-ghost:hover { border-color: var(--gold); background: #111; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin: 2.25rem 0 0; }
.stat dt { font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--gold-light); line-height: 1; }
.stat dd { margin: 0.6rem 0 0; font-size: 0.9rem; color: #a49d8e; max-width: 28ch; line-height: 1.5; }
.stat dd small { display: block; margin-top: 0.3rem; font-size: 0.75rem; color: #6f695e; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); margin-top: 2.25rem; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 207, 155, 0.35); }
.tier h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.tier .price { font-weight: 700; font-size: 2.3rem; line-height: 1.1; margin: 0.5rem 0 0.15rem; }
.tier .price span { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.tier ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; font-size: 0.93rem; }
.tier li { padding-left: 1.4rem; position: relative; margin-bottom: 0.6rem; color: #333; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--gold); }
.tier .btn { margin-top: auto; justify-content: center; }
.tier .btn + .btn { margin-top: 0.5rem; }

/* ---------- steps / split / note ---------- */

.steps { counter-reset: step; margin-top: 2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 0.78rem; font-weight: 700; color: var(--gold-deep); padding-top: 0.35rem; }
.step h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }

.note { border-left: 3px solid var(--gold); background: var(--mute); padding: 1.1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.93rem; }
.note p:last-child { margin-bottom: 0; }

.pill { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.6rem; border: 1px solid var(--gold); color: var(--gold-deep); border-radius: 999px; vertical-align: middle; }

.ethos { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem 2rem; }
.ethos li { border-top: 2px solid var(--gold-light); padding-top: 0.8rem; font-size: 0.95rem; color: #333; }
.ethos li strong { display: block; margin-bottom: 0.25rem; }

/* ---------- video ---------- */

.video-frame {
  position: relative; background: var(--ink-black); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%;
  box-shadow: 0 20px 60px -30px rgba(0,0,0,0.5);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame .video-note {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}

/* ---------- chat widget ---------- */

.chat-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80;
  background: var(--ink-black); color: var(--gold-light);
  border: 1px solid #222; border-radius: 999px; padding: 0.8rem 1.2rem;
  font: 700 0.9rem var(--font); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.chat-panel {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: min(400px, calc(100vw - 2.5rem)); height: min(600px, calc(100vh - 2.5rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; background: var(--ink-black); color: var(--gold-light); }
.chat-head strong { font-size: 0.9rem; letter-spacing: 0.04em; }
.chat-head button { background: none; border: 0; color: var(--gold-light); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--ground); }
.msg { max-width: 88%; padding: 0.65rem 0.85rem; border-radius: 10px; font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.user { background: var(--ink-black); color: #f3ecdc; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.typing { color: var(--ink-soft); font-style: normal; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; background: var(--ground); }
.chat-suggest button { font: 400 0.8rem var(--font); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.35rem 0.7rem; cursor: pointer; color: var(--ink); }
.chat-suggest button:hover { border-color: var(--gold); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1; font: 400 0.95rem var(--font); padding: 0.65rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ground); }
.chat-form input:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.chat-form button { font: 700 0.9rem var(--font); background: var(--ink-black); color: var(--gold-light); border: 0; border-radius: var(--radius); padding: 0 1rem; cursor: pointer; }
.chat-form button:disabled { opacity: 0.5; cursor: default; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--wash); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.site-foot h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.9rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.5rem; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-base { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--ink-soft); font-size: 0.83rem; }

/* ---------- page header for inner pages ---------- */

.vhead { padding-block: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem); }
.vhead .num { font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); color: var(--gold-light); line-height: 0.9; display: block; margin-bottom: 0.5rem; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.5rem; }
  .index-row { grid-template-columns: auto 1fr; }
  .index-go { grid-column: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .brand img { height: 26px; }
  .nav { gap: 0.8rem; font-size: 0.85rem; }
  .step { grid-template-columns: 1fr; gap: 0.4rem; }
  .chat-panel { right: 0.6rem; bottom: 0.6rem; width: calc(100vw - 1.2rem); height: calc(100vh - 1.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
