/* ============================================================
   Boles Data Consulting — Dashboard Aesthetic
   Soft light default / dark charcoal, single navy accent, KPI-card motifs.
   ============================================================ */

:root {
  --bg: #0b0f14;
  --surface: #10161d;
  --surface-2: #141c25;
  --border: #1e2937;
  --border-bright: #2b3a4d;
  --text: #e8eef4;
  --muted: #8fa0b3;
  --accent: #6f9fd0;
  --accent-strong: #8ab4de;
  --accent-dim: rgba(111, 159, 208, 0.1);
  --radius: 12px;
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  --bg: #eceef0;
  --surface: #f7f8f9;
  --surface-2: #f7f8f9;
  --border: #dde1e6;
  --border-bright: #c3ccd5;
  --text: #232f3d;
  --muted: #5d6b7d;
  --accent: #2c5480;
  --accent-strong: #1e3f63;
  --accent-dim: rgba(44, 84, 128, 0.09);
}

html[data-theme="light"] .site-header {
  background: rgba(236, 238, 240, 0.85);
}

html[data-theme="light"] .hero::before {
  opacity: 0.5;
}

html[data-theme="light"] .card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .testimonial,
html[data-theme="light"] .contact-form,
html[data-theme="light"] .process .step {
  box-shadow: 0 1px 3px rgba(16, 26, 40, 0.06);
}

html[data-theme="light"] .btn-primary {
  color: #ffffff;
}
html[data-theme="light"] .btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(44, 84, 128, 0.3);
}
html[data-theme="light"] .nav-links a.btn-primary,
html[data-theme="light"] .nav-links a.btn-primary:hover {
  color: #ffffff;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-links a.btn-primary { color: #0b1828; }
.nav-links a.btn-primary:hover { color: #0b1828; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0b1828;
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #0b1828;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(111, 159, 208, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 75% 8%, rgba(111, 159, 208, 0.09), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
  pointer-events: none;
}

.hero .container { position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(111, 159, 208, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  max-width: 15ch;
  margin-bottom: 22px;
}

.hero h1 .accent { color: var(--accent); }

.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- KPI stat row ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 72px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}

.stat-card .stat-value {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.stat-card .stat-value .unit { color: var(--accent); }

.stat-card .stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
  padding-right: 74px;
}

.stat-card svg.spark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 64px;
  height: 28px;
  opacity: 0.85;
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head .kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p { color: var(--muted); font-size: 1.08rem; }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.section-alt .card { background: var(--surface-2); }

.card:hover { border-color: var(--border-bright); transform: translateY(-2px); }

.card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(111, 159, 208, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .card-icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.card h3 { font-size: 1.22rem; margin-bottom: 10px; }

.card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }

.card ul {
  list-style: none;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.card .price {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
}

.card .price span { color: var(--muted); font-weight: 400; font-size: 0.88rem; }

.card-link {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Accolades ---------- */

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

.accolade {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}

.accolade:hover { border-color: var(--border-bright); }

.accolade svg {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: var(--accent);
  margin-top: 2px;
}

.accolade h3 { font-size: 1.02rem; margin-bottom: 5px; }
.accolade p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 900px) {
  .accolades { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .accolades { grid-template-columns: 1fr; }
}

/* ---------- Testimonial ---------- */

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 38px 42px;
  max-width: 780px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  align-items: stretch;
}

.testimonial-grid .testimonial {
  max-width: none;
  display: flex;
  flex-direction: column;
}

.testimonial-grid .testimonial blockquote { flex-grow: 1; }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial blockquote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.testimonial cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.testimonial cite strong { color: var(--text); display: block; }

/* ---------- Process timeline ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}

.process .step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.section-alt .process .step { background: var(--surface-2); }

.process .step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 10px;
}

.process .step h3 { font-size: 1rem; margin-bottom: 6px; }
.process .step p { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 50% 100%, rgba(111, 159, 208, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 34px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
}

.about-photo .photo-caption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.about-body h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.about-body h2:first-child { margin-top: 0; }
.about-body p { color: var(--muted); margin-bottom: 14px; }
.about-body strong { color: var(--text); }

.cred-list { list-style: none; }
.cred-list li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  position: relative;
}
.cred-list li:last-child { border-bottom: none; }
.cred-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.cred-list li strong { color: var(--text); }

.pull-quote {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 34px 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { font-size: 1.8rem; margin-bottom: 14px; }
.contact-info p { color: var(--muted); margin-bottom: 24px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.contact-method:last-of-type { border-bottom: none; }
.contact-method svg { width: 20px; height: 20px; stroke: var(--accent); flex: none; }
.contact-method a { color: var(--text); font-weight: 500; }
.contact-method a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p { color: var(--muted); font-size: 0.9rem; }

.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .card-grid, .card-grid.two { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 50px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .btn { margin: 12px 0; padding: 12px 26px; border-bottom: none; }
}
