/* ============================================================
   Vernda LLC - site stylesheet
   ============================================================ */

:root {
  /* Brand colors sampled from Logo_horz.png gradient */
  --brand-blue: #1a8fcc;
  --brand-blue-deep: #123a56;
  --brand-green: #86c440;
  --brand-green-deep: #3f6b23;

  --gradient-brand: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);

  /* Dark theme surface palette */
  --bg: #0a141f;
  --bg-alt: #0e1b29;
  --surface: #122232;
  --surface-2: #17293b;
  --border: #22394d;

  --text: #eaf1f6;
  --text-muted: #a9bccb;
  --text-dim: #7d93a6;

  --radius: 14px;
  --max-width: 1160px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Self-hosted fonts ----------
   Variable fonts (latin subset): each file covers the full weight
   range used on the site, so one file per family is all that's needed. */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-var.woff2") format("woff2-variations"),
       url("../assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin-var.woff2") format("woff2-variations"),
       url("../assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-green); }

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

p { color: var(--text-muted); margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-brand);
  color: #051019;
  box-shadow: 0 8px 24px -8px rgba(26, 143, 204, 0.55);
}
.btn-primary:hover { color: #051019; box-shadow: 0 12px 28px -8px rgba(134, 196, 64, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--brand-green); background: rgba(134, 196, 64, 0.08); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 31, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--brand-green);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-icons a { color: var(--text-muted); display: inline-flex; }
.nav-icons a:hover { color: var(--brand-green); }
.nav-icons svg { width: 20px; height: 20px; }

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

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

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 26px;
    display: none;
  }
  .nav-right.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(26, 143, 204, 0.22), transparent 70%),
    radial-gradient(600px 320px at 85% 40%, rgba(134, 196, 64, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-green);
  background: rgba(134, 196, 64, 0.1);
  border: 1px solid rgba(134, 196, 64, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

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

.hero-lede {
  font-size: 1.18rem;
  max-width: 56ch;
  color: var(--text-muted);
  margin-bottom: 38px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.industry-strip span.label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 6px;
}

.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  max-width: 62ch;
  margin: 0 0 48px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- Service cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.5);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; stroke: #06121c; }

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.card.featured {
  border-color: var(--brand-blue);
  background: linear-gradient(180deg, rgba(26,143,204,0.08), var(--surface) 40%);
}

/* ---------- Credibility / stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat {
  text-align: left;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
}
.stat .label { color: var(--text-dim); font-size: 0.9rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 50% -10%, rgba(134,196,64,0.16), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; margin-top: 28px;}

@media (max-width: 640px) {
  .cta-band { padding: 40px 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-alt);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand img { height: 28px; margin-bottom: 10px; }
.footer-tagline { font-family: var(--font-head); color: var(--brand-green); font-size: 0.95rem; letter-spacing: 0.03em; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-muted); font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { color: var(--text-dim); display: inline-flex; }
.footer-bottom .socials a:hover { color: var(--brand-green); }
.footer-bottom .socials svg { width: 18px; height: 18px; }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 780px) {
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .about-hero .headshot-wrap { margin: 0 auto; }
}

.headshot-wrap {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  padding: 4px;
  background: var(--gradient-brand);
}
.headshot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.about-hero .kicker {
  color: var(--brand-green);
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.rune-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.rune-callout img { width: 84px; height: 84px; }
@media (max-width: 620px) {
  .rune-callout { grid-template-columns: 1fr; text-align: center; }
  .rune-callout img { margin: 0 auto; }
}

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.timeline-item .when { color: var(--text-dim); font-size: 0.85rem; font-family: var(--font-head); letter-spacing: 0.04em; }
.timeline-item h3 { font-size: 1.08rem; margin: 4px 0 6px; }
.timeline-item .org { color: var(--brand-green); font-weight: 600; font-size: 0.92rem; }

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
}
.list-check svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--brand-green); }

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pub-list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.pub-list .pub-title { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.pub-list .pub-meta { color: var(--text-dim); font-size: 0.88rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card .icon svg { width: 24px; height: 24px; stroke: #06121c; }
.contact-card h3 { margin-bottom: 4px; }

.note-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.note-box strong { color: var(--text); }

/* ---------- Engagement process (Contact page) ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 940px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Case studies ---------- */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.case-card:hover {
  border-color: var(--brand-green);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.5);
}

.case-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.case-card-head h3 { margin: 0; font-size: 1.25rem; }

.case-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .case-card-body { grid-template-columns: 1fr; } }

.case-card-body h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 8px;
}
.case-card-body p { font-size: 0.95rem; margin-bottom: 0; }
