/* ==========================================================
   Lodestone Consulting — brand stylesheet
   Palette from brand identity:
     navy  #1C2B45 · gold #C68A3E · cream #F7F4EE
   Type: Archivo (display) · Inter (body) · IBM Plex Mono (labels)
   ========================================================== */

:root {
  --navy: #1C2B45;
  --navy-deep: #131F33;
  --gold: #C68A3E;
  --gold-soft: #D9A55F;
  --cream: #F7F4EE;
  --cream-tint: #EFEAE0;
  --ink: #24303F;
  --ink-soft: #4E5A69;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1080px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p + p { margin-top: 1rem; }

a { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Eyebrow labels (compass bearings) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-tint);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand-name-light { font-weight: 500; color: var(--ink-soft); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.site-nav a:hover { color: var(--gold); }

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 4vw, 2.5rem);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 { color: var(--cream); max-width: 15ch; }

.hero-sub {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--cream) 82%, var(--navy));
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-needle {
  position: absolute;
  right: clamp(-6rem, -2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 38vw, 520px);
  color: var(--cream);
  opacity: 0.18;
  pointer-events: none;
}

.needle-spin {
  transform-origin: 100px 100px;
  animation: settle 2.6s cubic-bezier(0.34, 1.4, 0.4, 1) both;
}
@keyframes settle {
  from { transform: rotate(-140deg); }
  to   { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .needle-spin { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 40%, transparent);
  padding-bottom: 2px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Proof bar ---------- */
.proof-bar {
  background: var(--navy-deep);
  color: color-mix(in srgb, var(--cream) 65%, var(--navy));
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.8rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.section-tint { background: var(--cream-tint); }

.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }

.section-lede {
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  max-width: 58ch;
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Use cases ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.case {
  background: var(--navy);
  color: color-mix(in srgb, var(--cream) 85%, var(--navy));
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.case-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

.case-result {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--cream);
}

/* ---------- Why Lodestone ---------- */
.promise-list {
  list-style: none;
  margin-top: 1.5rem;
}
.promise-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
}
.promise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 1.05rem;
  height: 1.05rem;
  background: var(--gold);
  clip-path: polygon(50% 0%, 68% 50%, 50% 40%, 32% 50%); /* mini compass needle */
  transform: rotate(45deg) scale(1.5);
}
.promise-list strong { color: var(--navy); }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: color-mix(in srgb, var(--cream) 85%, var(--navy));
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}
.cta-panel h2 { color: var(--cream); }
.cta-panel p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-panel .btn { margin-top: 2rem; }

.cta-alt { margin-top: 1.25rem; font-size: 0.95rem; }
.cta-alt a { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: color-mix(in srgb, var(--cream) 55%, var(--navy));
  font-size: 0.9rem;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: color-mix(in srgb, var(--cream) 75%, var(--navy)); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { display: flex; gap: 1.5rem; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-needle { opacity: 0.1; right: -8rem; }
  .footer-inner { justify-content: flex-start; }
}
