/* ============================================================
   LPS — Local Procurement Solutions
   Design system: navy / black / white / professional gray
   Stage accents: Foundations (green), Systems (blue), Optimization (purple)
   ============================================================ */

:root {
  --navy: #0f2440;
  --navy-2: #16335a;
  --black: #0a0f16;
  --ink: #1c2530;
  --gray: #4a5261;
  --gray-light: #9aa3af;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-tint: #eef2f7;
  --found: #1f8a5c;
  --found-bg: #e9f5ef;
  --sys: #2f6fed;
  --sys-bg: #e9effc;
  --opt: #7b4fd6;
  --opt-bg: #f0eaf9;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(15, 36, 64, .10);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sys); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section.tight { padding: 56px 0; }
.section.soft { background: var(--bg-soft); padding: 84px 0; }
.section.navy { background: var(--navy); color: #eef2f8; }
.section.black { background: var(--black); color: #eef2f8; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--black);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; transition: height .2s ease;
}
.site-header.scrolled .header-inner { height: 62px; }
.site-header.scrolled .brand-mark { height: 24px; padding: 5px 8px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  height: 34px; width: auto; object-fit: contain; flex-shrink: 0;
  transition: height .2s ease, padding .2s ease, background .15s ease;
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  padding: 7px 11px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.brand:hover .brand-mark { background: #fff; }
.brand-text { color: #fff; line-height: 1.2; }
.brand-text strong { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.brand-text span { display: block; font-size: 10px; letter-spacing: 1.6px; color: var(--gray-light); text-transform: uppercase; }
.site-header .brand-text span { display: none; }
.site-header .brand-text strong {
  white-space: normal; max-width: 128px; line-height: 1.35;
}
.site-header .brand { align-items: center; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.main-nav ul { display: flex; gap: 2px; list-style: none; align-items: center; }
.main-nav a {
  color: #d6dde7; font-size: 13px; font-weight: 600;
  padding: 8px 9px; border-radius: 6px; letter-spacing: 0; white-space: nowrap;
  position: relative; transition: color .15s ease, background .15s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px;
  background: #fff; border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.main-nav a.active { color: #fff; background: var(--navy-2); }
.main-nav a.active::after { background: #9db4d6; }
.nav-cta {
  background: #fff !important; color: var(--navy) !important; font-weight: 700 !important;
  padding: 10px 18px !important; border-radius: 7px !important;
}
.nav-cta:hover { background: var(--bg-tint) !important; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--navy) 62%, var(--navy-2) 100%);
  color: #fff; padding: 110px 0 90px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 85% 20%, rgba(47,111,237,.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: #9db4d6; margin-bottom: 22px;
  border: 1px solid rgba(157,180,214,.35); padding: 7px 14px; border-radius: 100px;
}
.hero h1 { font-size: 52px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; margin-bottom: 24px; }
.hero p.lead { font-size: 20px; color: #c9d5e5; max-width: 660px; margin-bottom: 38px; line-height: 1.6; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 700; font-size: 15px; padding: 15px 28px;
  border-radius: 8px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  letter-spacing: .2px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #eef2f8; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-light { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-outline-light:hover { border-color: var(--navy); background: var(--bg-tint); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #17202c; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--black), var(--navy));
  color: #fff; padding: 78px 0 66px;
}
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.page-hero p { font-size: 19px; color: #c9d5e5; max-width: 720px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero.foundations { border-bottom: 5px solid var(--found); }
.page-hero.systems { border-bottom: 5px solid var(--sys); }
.page-hero.optimization { border-bottom: 5px solid var(--opt); }

/* ---------- Typography helpers ---------- */
h2.sec-title { font-size: 34px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); margin-bottom: 16px; }
.section.navy h2.sec-title, .section.black h2.sec-title { color: #fff; }
.sec-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--sys); margin-bottom: 12px; display: block;
}
.sec-lead { font-size: 19px; color: var(--gray); max-width: 760px; margin-bottom: 20px; }
.section.navy .sec-lead, .section.black .sec-lead { color: #c9d5e5; }
h3 { color: var(--navy); font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.section.navy h3, .section.black h3 { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 4px 16px rgba(15,36,64,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--gray); font-size: 15.5px; }
.card h3 { margin-bottom: 10px; }

.card.found { border-top: 4px solid var(--found); }
.card.sys { border-top: 4px solid var(--sys); }
.card.opt { border-top: 4px solid var(--opt); }
.card.found:hover { box-shadow: 0 12px 30px rgba(31,138,92,.20); }
.card.sys:hover { box-shadow: 0 12px 30px rgba(47,111,237,.20); }
.card.opt:hover { box-shadow: 0 12px 30px rgba(123,79,214,.20); }

.stage-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; padding: 5px 11px; border-radius: 100px; margin-bottom: 14px;
}
.tag-found { background: var(--found-bg); color: var(--found); }
.tag-sys { background: var(--sys-bg); color: var(--sys); }
.tag-opt { background: var(--opt-bg); color: var(--opt); }

/* ---------- Framework (People/Process/Info/Money) ---------- */
.fw-card { background: var(--black); border: 1px solid rgba(255,255,255,.1); color: #fff; border-radius: var(--radius); padding: 30px 26px; }
.fw-card .fw-num { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #9db4d6; text-transform: uppercase; margin-bottom: 10px; }
.fw-card h3 { color: #fff; margin-bottom: 6px; }
.fw-card p { color: #b7c3d4; font-size: 15px; }
.fw-card ul { margin-top: 12px; padding-left: 18px; color: #93a3b8; font-size: 14px; }
.fw-card ul li { margin-bottom: 4px; }

/* ---------- Lists ---------- */
.check-list { list-style: none; }
.check-list li {
  padding: 9px 0 9px 30px; position: relative; color: var(--ink); font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 2px; top: 9px;
  color: var(--found); font-weight: 800;
}
.check-list.on-dark li { color: #d6dde7; border-color: rgba(255,255,255,.12); }
.check-list.on-dark li::before { color: #6fdcae; }

.dot-list { list-style: none; }
.dot-list li { padding: 5px 0 5px 20px; position: relative; color: var(--gray); font-size: 15.5px; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--sys); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col.media { align-items: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--gray); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 84px 0; }
.cta-band h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; max-width: 720px; margin: 0 auto 18px; }
.cta-band p { color: #c9d5e5; font-size: 18px; max-width: 620px; margin: 0 auto 34px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Quote ---------- */
.pull-quote {
  border-left: 5px solid var(--sys); background: var(--bg-soft);
  padding: 26px 30px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.pull-quote small { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--gray); letter-spacing: 1.2px; text-transform: uppercase; }

/* ---------- Owner cards ---------- */
.owner-card { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start; }
.owner-initials {
  width: 88px; height: 88px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800;
}

/* ---------- Notice / disclaimer boxes ---------- */
.notice {
  background: var(--bg-tint); border: 1px solid var(--line); border-left: 5px solid var(--navy);
  border-radius: 8px; padding: 22px 26px; font-size: 15px; color: var(--ink);
}
.notice strong { color: var(--navy); }
.notice ul { margin: 10px 0 0; padding-left: 20px; }
.notice li { margin-bottom: 4px; color: var(--gray); }

/* ---------- Portfolio ---------- */
.work-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-item .work-body { padding: 24px 26px; }
.work-item img { border-bottom: 1px solid var(--line); }
.work-item .work-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gray-light); margin-bottom: 8px; }
.work-item h3 { font-size: 18px; margin-bottom: 8px; }
.work-item p { color: var(--gray); font-size: 14.5px; }

/* ---------- Articles (resources) ---------- */
.article-card { display: block; color: inherit; }
.article-card:hover { text-decoration: none; }
.article-card h3 { color: var(--navy); }
.article-meta { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sys); margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; letter-spacing: .3px; }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sys); outline-offset: 1px; border-color: var(--sys); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 14px; color: var(--gray); margin-top: 6px; }
form .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b7c3d4; padding: 64px 0 30px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #b7c3d4; }
.site-footer a:hover { color: #fff; }
.footer-tagline { color: #8b98ab; margin-top: 14px; font-size: 14px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: #77839a;
}
.footer-disclaimer { max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .brand-text span { display: none; }
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 76px 0 64px; }
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 32px; }
  h2.sec-title { font-size: 28px; }
  .grid-2, .grid-3, .grid-4, .two-col, .steps, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--black); padding: 14px 24px 22px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .owner-card { grid-template-columns: 1fr; }
}

/* ---------- Accessibility: visible keyboard focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--sys);
  outline-offset: 2px;
}
.main-nav a:focus-visible {
  outline-offset: -2px;
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .2s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 8px 22px rgba(15,36,64,.28);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease, visibility .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-2); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .back-to-top, .site-header, .header-inner, .brand-mark, .main-nav a::after {
    transition: none !important;
  }
}

/* ---------- Typography: bigger headline, tighter supporting copy ---------- */
h2.sec-title { font-size: 36px; }
.sec-lead { font-size: 18px; max-width: 640px; }
.hero h1 { font-size: 54px; }
.page-hero h1 { font-size: 44px; }

/* ---------- Stat row ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  overflow: hidden; margin-top: 40px;
}
.stat-row .stat { background: var(--navy); padding: 22px 20px; text-align: center; }
.stat-row .stat .stat-num { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.stat-row .stat .stat-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: #9db4d6; margin-top: 8px;
}

/* ---------- Tabs (stage selector) ---------- */
.tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; border-bottom: 1px solid var(--line); }
.tab-btn {
  background: none; border: 0; cursor: pointer; font: inherit;
  padding: 12px 18px; font-size: 14px; font-weight: 700; letter-spacing: .3px;
  color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--sys); }
.tab-btn[aria-selected="true"].tab-found { border-bottom-color: var(--found); }
.tab-btn[aria-selected="true"].tab-sys { border-bottom-color: var(--sys); }
.tab-btn[aria-selected="true"].tab-opt { border-bottom-color: var(--opt); }
.tab-panels { padding-top: 32px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabFadeIn .25s ease; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- "Show N more" list wrapper (native <details>) ---------- */
.list-more { margin-top: 2px; }
.list-more > summary {
  list-style: none; cursor: pointer; color: var(--sys); font-weight: 700; font-size: 14px;
  padding: 10px 0 4px; display: flex; align-items: center; gap: 6px;
}
.list-more > summary::-webkit-details-marker { display: none; }
.list-more > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--sys-bg); color: var(--sys);
  font-size: 13px; font-weight: 800; transition: transform .2s ease;
}
.list-more[open] > summary::before { content: "\2212"; }
.list-more[open] > summary .more-label::after { content: "Show less"; }
.list-more:not([open]) > summary .more-label::after { content: attr(data-more-text); }
.list-more .check-list, .list-more .dot-list { margin-top: 4px; }

/* ---------- Read-more text (native <details>) ---------- */
.text-more { margin-top: 10px; }
.text-more > summary {
  list-style: none; cursor: pointer; color: var(--sys); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.text-more > summary::-webkit-details-marker { display: none; }
.text-more > summary::after { content: "Read more"; }
.text-more[open] > summary::after { content: "Show less"; }
.text-more > summary::before {
  content: "\203A"; display: inline-block; transition: transform .2s ease; font-weight: 800;
}
.text-more[open] > summary::before { transform: rotate(90deg); }
.text-more p { margin-top: 10px; }
.section.navy .text-more > summary, .section.black .text-more > summary { color: #9db4d6; }

@media (max-width: 760px) {
  h2.sec-title { font-size: 30px; }
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 32px; }
}
