/* Cedar Bridge Systems — modern, accessible base styles */
:root{
  --bg: #ffffff;
  --surface: #f6f7f8;
  --text: #0b1f17;
  --muted: rgba(11,31,23,.72);
  --border: rgba(11,31,23,.12);

  --brand: #0f3d2e;   /* deep cedar */
  --brand2:#1f6f56;   /* green */
  --accent:#caa24a;   /* warm cedar-gold */

  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;

  --max: 1120px;
}

[data-theme="dark"]{
  --bg: #0b1210;
  --surface: #111c18;
  --text: #f2f6f4;
  --muted: rgba(242,246,244,.72);
  --border: rgba(242,246,244,.14);

  --shadow: 0 14px 34px rgba(0,0,0,.35);
}

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

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; display:block; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px;
  width:auto; height:auto;
  background: var(--bg);
  border: 2px solid var(--brand2);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 10000;
}

header{
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand img{
  width: 200px;
  height: auto;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 650;
}
.nav-links a:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--brand2) 70%, white);
  outline-offset: 2px;
}
.nav-links a:hover{
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  color: var(--text);
  text-decoration: none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  border-color: transparent;
}
.btn.ghost{
  background: transparent;
}

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.hero{
  padding: 56px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }
  .brand img{ width: 190px; }
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

h1{
  font-size: clamp(2rem, 2.6vw + 1.4rem, 3.4rem);
  line-height: 1.06;
  margin: 14px 0 12px;
  letter-spacing: -0.02em;
}
.lede{
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 64ch;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 520px){
  .stats{ grid-template-columns: 1fr; }
}
.stat{
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
}
.stat strong{
  display:block;
  font-size: 1.1rem;
}
.stat span{ color: var(--muted); }

.section{
  padding: 56px 0;
}
.section h2{
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.2rem);
  letter-spacing: -0.01em;
}
.section p.section-sub{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 76ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card{
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
@media (max-width: 900px){
  .card{ grid-column: span 6; }
}
@media (max-width: 620px){
  .card{ grid-column: span 12; }
}

.card h3{ margin: 4px 0 8px; }
.card p{ margin: 0; color: var(--muted); }

.badge{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}

.process{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px){
  .process{ grid-template-columns: 1fr; }
}
.step{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}
.step-num{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  flex: 0 0 auto;
}
.step h3{ margin: 2px 0 6px; }
.step p{ margin: 0; color: var(--muted); }

.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}

.quote{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
}
.quote p{ margin: 0 0 10px; color: var(--muted); }
.quote strong{ display:block; }

form{
  display:grid;
  gap: 12px;
}
label{
  display:grid;
  gap: 6px;
  font-weight: 700;
}
input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  color: var(--text);
  font: inherit;
}
textarea{ min-height: 120px; resize: vertical; }
.helper{ color: var(--muted); font-size: .95rem; }

footer{
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 65%, transparent);
}
.footer-grid{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.small{ color: var(--muted); font-size: .95rem; }
.footer-links{
  display:flex; gap: 14px; flex-wrap: wrap;
}

#toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--text) 92%, transparent);
  color: color-mix(in oklab, var(--bg) 92%, transparent);
  border: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  box-shadow: var(--shadow);
  max-width: min(520px, calc(100% - 24px));
  display:none;
}
