/* Cedar Bridge Systems — "big consulting firm" theme (navy + blue) */

:root{
  /* Typography */
  --font-body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --font-head: ui-serif, Georgia, "Times New Roman", Times, serif;

  /* Neutrals */
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface2: #eef3f9;

  --text: #082146;                 /* deep navy */
  --muted: rgba(8,33,70,.70);
  --border: rgba(8,33,70,.14);

  /* Brand (from logo palette) */
  --brand: #122e53;                /* primary navy */
  --brand2:#326287;                /* blue */
  --accent:#34a0cb;                /* cyan highlight */

  /* Layout */
  --radius: 14px;
  --max: 1040px;                   /* a bit narrower = more whitespace */
  --shadow: 0 8px 22px rgba(8,33,70,.08);
}

[data-theme="dark"]{
  --bg: #070c16;
  --surface: #0c172a;
  --surface2: #0f1d35;

  --text: #f2f6fa;
  --muted: rgba(242,246,250,.72);
  --border: rgba(242,246,250,.16);

  --shadow: 0 18px 40px rgba(0,0,0,.42);
}

*{ 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: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  letter-spacing: -0.005em;
}

a{ color: var(--brand2); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus-visible{
  outline: 3px solid rgba(52,160,203,.55);
  outline-offset: 3px;
  border-radius: 10px;
}

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

.container{
  width: min(var(--max), calc(100% - 72px));
  margin: 0 auto;
}
@media (max-width: 700px){
  .container{ width: min(var(--max), calc(100% - 44px)); }
}

/* Skip */
.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(--accent);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 10000;
}

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border);
}

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

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

.brand img{
  width: 100px; /* smaller header logo */
  height: auto;
}


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

.nav-links a{
  color: var(--muted);
  font-weight: 650;
  padding: 10px 10px;
  border-radius: 12px;
}
.nav-links a:hover{
  color: var(--text);
  background: color-mix(in oklab, var(--surface) 74%, transparent);
  text-decoration: none;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.btn:hover{
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  text-decoration: none;
}

.btn.primary{
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}
.btn.primary:hover{
  background: color-mix(in oklab, var(--brand) 84%, var(--brand2));
}

.btn.secondary{
  background: transparent;
  border-color: color-mix(in oklab, var(--brand) 18%, var(--border));
  color: var(--brand);
}
[data-theme="dark"] .btn.secondary{
  color: var(--text);
}

/* Hero */
.hero{
  padding: 96px 0 60px;
  background:
    radial-gradient(1200px 520px at 16% 14%, rgba(52,160,203,.14), transparent 60%),
    radial-gradient(980px 520px at 86% 10%, rgba(50,98,135,.12), transparent 58%);
}

@media (max-width: 900px){
  .hero{ padding: 70px 0 44px; }
    .brand img{
  width: 100px; /* smaller header logo */
  height: auto;
}

}

.kicker{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 84%, transparent);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1{
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 2.8vw + 1.6rem, 4.0rem);
  line-height: 1.02;
  margin: 18px 0 14px;
  letter-spacing: -0.03em;
}

.lede{
  font-size: 1.18rem;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 70ch;
}

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

/* Trust line */
.highlights{
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display:flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-weight: 650;
}
.highlights li{
  position: relative;
  padding-left: 16px;
}
.highlights li::before{
  content: "";
  position:absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .85;
}

/* Panels / cards */
.panel{
  background: color-mix(in oklab, var(--bg) 94%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.section{
  padding: 96px 0;
}
@media (max-width: 900px){
  .section{ padding: 70px 0; }
}

.section.alt{
  background: var(--surface);
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

.section h2{
  font-family: var(--font-head);
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 1.5vw + 1.1rem, 2.6rem);
  letter-spacing: -0.02em;
}

.section p.section-sub{
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 78ch;
}

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

.card{
  grid-column: span 4;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: none;                 /* more conservative */
}

@media (max-width: 900px){
  .card{ grid-column: span 6; }
}
@media (max-width: 620px){
  .card{ grid-column: span 12; }
}

.badge{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  color: var(--muted);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(52,160,203,.12);
}

.card h3{
  margin: 10px 0 8px;
  font-size: 1.14rem;
}

.card p{ margin: 0; color: var(--muted); }

/* Process */
.process{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.step{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.step-num{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: var(--brand);
  color: #fff;
  flex: 0 0 auto;
}

.step h3{ margin: 2px 0 6px; }
.step p{ margin: 0; color: var(--muted); }

/* Split + quote */
.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}

.quote{
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.quote p{ margin: 0 0 10px; color: var(--muted); }
.quote strong{ display:block; }

/* Forms */
form{ display:grid; gap: 12px; }

label{
  display:grid;
  gap: 6px;
  font-weight: 750;
}

input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input:focus, textarea:focus, select:focus{
  outline: 3px solid rgba(52,160,203,.38);
  outline-offset: 2px;
}

textarea{ min-height: 140px; resize: vertical; }
.helper{ color: var(--muted); font-size: .98rem; }
.small{ color: var(--muted); font-size: .98rem; }

footer{
  padding: 34px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

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


/* Hero media (simple corporate imagery) */
.hero-media{
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img{
  width: 100%;
  height: auto;
}

.hero-media .caption{
  padding: 12px 14px;
  font-size: .95rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 94%, var(--surface));
}


/* Simple consulting strip (Industries) */
.strip{
  padding: 26px 0;
  background: var(--surface);
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.strip-inner{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.strip-title{
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .80rem;
  color: var(--muted);
}
.strip-list{
  color: var(--muted);
  font-weight: 650;
}

/* Hero contact strip */
.contact-strip{
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Two-up services layout */
.services-grid .card{
  grid-column: span 6;
}
@media (max-width: 900px){
  .services-grid .card{ grid-column: span 12; }
}
