/* CAST — caleacompliant.com
   Brand: G2K Labs system — navy ink, indigo accent, cool neutrals, monoline marks. */

:root {
  --ink: #14264A;
  --body: #3D4A61;
  --muted-text: #5F6B80;
  --accent: #5B5BD6;
  --accent-deep: #4747B8;
  --paper: #FFFFFF;
  --wash: #F4F6F9;
  --line: #E2E6EE;
  --radius: 10px;
  --display: "Avenir Next", "Segoe UI", "Helvetica Neue", -apple-system, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--text);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand svg { width: 40px; height: 40px; flex: none; }
.brand .brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  line-height: 1;
}
.brand .brand-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-text);
  margin-top: 0.25rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero .lede {
  font-size: 1.15rem;
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(320px, 70vw); height: auto; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.washed { background: var(--wash); }
.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 0.9rem; }
.section-head p { color: var(--body); }

/* capability cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; }
.card p + p { margin-top: 0.6rem; }

/* independence chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.chip {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  border-top: 3px solid var(--accent);
  background: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.5rem 1.4rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.step h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}
.step p { font-size: 0.97rem; }

/* benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem 2.5rem;
}
.benefit h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.5rem; }
.benefit p { font-size: 0.97rem; }

/* CTA band */
.cta-band { background: var(--ink); }
.cta-band .wrap {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  max-width: 24ch;
}
.cta-band p { color: #B9C2D4; margin-top: 0.5rem; max-width: 48ch; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3.5rem;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .opt { color: var(--muted-text); font-weight: 500; }
.field input, .field textarea {
  font: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.9rem; color: var(--muted-text); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: 0.95rem; color: var(--accent-deep); }

.contact-aside h3 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.contact-aside .block { margin-bottom: 1.75rem; }
.contact-aside p { font-size: 0.98rem; }
.contact-aside a { color: var(--accent-deep); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 3rem 0 2.5rem;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.2em;
}
.site-footer .foot-brand svg { width: 30px; height: 30px; }
.site-footer address { font-style: normal; color: var(--muted-text); line-height: 1.7; }
.site-footer a { color: var(--accent-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted-text);
  font-size: 0.85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(220px, 55vw); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- compact phone header ---------- */
.site-header .wrap { flex-wrap: wrap; }
@media (max-width: 640px) {
  .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html { scroll-padding-top: 1.5rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.85rem; padding-top: 1rem; padding-bottom: 1rem; }
  .site-nav { gap: 0.8rem 1.2rem; }
  .site-nav a.btn { padding: 0.55rem 1.2rem; }
}

/* ---------- header co-brand (G2K Labs) ---------- */
.header-cobrand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}
.header-cobrand svg { width: 26px; height: 26px; flex: none; }
.header-cobrand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  white-space: nowrap;
}
.header-cobrand:hover span { color: var(--accent-deep); }
@media (max-width: 640px) {
  .header-cobrand { padding-left: 0; border-left: none; }
}

/* ---------- news + linkedin section ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem; align-items: stretch; }
.news-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.news-card .when { font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-deep); }
.news-card h3 { font-size: 1.08rem; font-weight: 600; margin: 0.4rem 0; }
.news-card p { font-size: 0.95rem; }
.news-feature iframe { width: 100%; height: 1250px; border: 0; display: block; background: transparent; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .news-feature iframe { height: 1550px; } }
.embed-fallback { font-size: 0.85rem; color: var(--muted-text); margin-top: 0.6rem; }
.embed-fallback a { color: var(--accent-deep); }
