/* Junipine Solutions */
:root {
  --navy: #34405E;
  --ink: #1F2740;
  --muted: #4A5470;
  --plum: #8A4F96;
  --copper: #B06A2A;
  --amber: #F0AE55;
  --bg: #F6F7FB;
  --white: #FFFFFF;
  --line: #E3E6EF;
  --tint: #EEF0F7;
  --lilac: #F1EAF5;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.15; }
h3 { font-size: 1.1875rem; font-weight: 700; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack-16, .stack-18, .stack-24, .stack-36, .stack-48 { display: flex; flex-direction: column; }
.stack-16 { gap: 16px; } .stack-18 { gap: 18px; } .stack-24 { gap: 24px; }
.stack-36 { gap: 36px; } .stack-48 { gap: 48px; }

.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); }
.muted, .section-head p.muted { color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 700; font: inherit; font-weight: 700; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); padding: 12.5px 26.5px; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 12px 22px; font-weight: 500; }
.btn-accent { background: var(--amber); color: var(--ink); padding: 15px 28px; }
.btn-accent:hover { background: #E89E3C; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: 64px; }
.brand span { font-family: var(--serif); font-size: 1.375rem; letter-spacing: 0.08em; color: var(--navy); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 0.975rem; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; padding: 10px 0; }

/* Hero */
.hero { background: var(--white); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }
.note { font-size: 0.95rem; color: var(--muted); }
.note strong { color: var(--ink); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 80px 0; }
.section-white { background: var(--white); }
.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bordered-top { border-top: 1px solid var(--line); }

/* Services */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card { position: relative; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card p { color: var(--muted); font-size: 1rem; flex-grow: 1; }
.card:hover { border-color: #C9CEDD; box-shadow: 0 8px 24px rgba(31, 39, 64, .08); transform: translateY(-2px); }
.card-link { font-weight: 700; font-size: 0.95rem; color: var(--plum); text-decoration: none; margin-top: 4px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.card:hover .card-link { text-decoration: underline; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--plum); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lilac); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; }

/* Industries */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 12px 20px; border-radius: 999px; background: var(--tint); color: var(--navy); font-weight: 500; }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 3px solid var(--navy); }
.steps p { color: var(--muted); font-size: 1rem; }
.step-num { font-family: var(--serif); font-size: 2.25rem; color: var(--copper); line-height: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: center; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.headshot { aspect-ratio: 4 / 5; max-width: 320px; width: 100%; border-radius: 20px; overflow: hidden; background: var(--tint); justify-self: center; }
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Expect */
.grid-expect { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.expect { display: flex; gap: 14px; align-items: flex-start; padding: 24px; background: var(--tint); border-radius: 16px; }
.expect svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.expect div { display: flex; flex-direction: column; gap: 6px; }
.expect h3 { font-size: 1.0625rem; }
.expect p { color: var(--muted); font-size: 0.975rem; }

/* Contact */
.contact-wrap { padding: 24px 24px 96px; }
.contact { background: var(--navy); color: var(--white); border-radius: 28px; padding: clamp(28px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: center; max-width: 1152px; margin: 0 auto; }
.contact p { color: #E3E6F2; }
.contact-email { color: var(--white); font-weight: 700; font-size: 1.125rem; }
.contact-email:hover { color: var(--amber); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.form input, .form textarea { padding: 14px 16px; border-radius: 10px; border: none; font: inherit; color: var(--ink); background: var(--white); }
.form textarea { resize: vertical; }
.form .btn { margin-top: 6px; }
.optional { font-weight: 400; opacity: 0.8; }
.form [hidden] { display: none !important; }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.is-success { background: #E7F3EC; color: #1E5A38; font-size: 1.05rem; }
.form-status.is-error { background: #FCEBEA; color: #8A2A22; }
.form-status.is-error a { color: #8A2A22; }
.form button:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 0.925rem; color: var(--muted); }

/* Floating buttons */
.float-actions {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center; z-index: 50;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.float-actions.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta { box-shadow: 0 6px 20px rgba(31, 39, 64, .25); padding: 13px 22px; }
.to-top {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(31, 39, 64, .18);
}
.to-top:hover { background: var(--tint); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.float-actions.hide-cta .float-cta { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-actions, .card { transition: none; }
  .card:hover { transform: none; }
}

/* Tablet and down: compact header */
@media (max-width: 760px) {
  .nav { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .nav-links a:not(.btn) { display: none; }
  .brand img { width: 48px; height: 48px; }
  .brand span { font-size: 1.2rem; }
  .btn-sm { padding: 11px 18px; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-grid { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .eyebrow { letter-spacing: 0.08em; font-size: 0.8rem; }
  h1 { font-size: 2.35rem; }
  .lead { font-size: 1.0625rem; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .hero-art svg { max-width: 260px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 56px 0; }
  .contact-wrap { padding: 16px 16px 96px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .float-actions { right: 16px; left: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .float-cta { flex: 1; }
  .float-actions.hide-cta { left: auto; }
  .headshot { max-width: 240px; }
}
