/* ABSG.TECH — Projects pages shared stylesheet */
:root {
  --brand-dark: #0f172a;
  --brand-dark-2: #1e3a5f;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-soft: #60a5fa;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  font-family: 'Inter', 'Avenir', sans-serif;
  margin: 0; padding: 0;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Sticky nav (matches main site) */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,23,42,0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(0,0,0,.3);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 1px; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: rgba(255,255,255,.85); font-size: 14px; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 600; }
.nav-login-btn {
  background: rgba(255,255,255,.12);
  color: #fff; border: 1px solid rgba(255,255,255,.35);
  padding: 7px 18px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background .2s;
  white-space: nowrap;
}
.nav-login-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.nav-hamburger { display: none; background: none; border: none; color: #fff; cursor: pointer; font-size: 22px; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #0f172a; padding: 16px 24px; gap: 16px; }
  .nav-hamburger { display: block; }
}

/* Hero */
.pm-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}
.pm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(59,130,246,.25), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(79,70,229,.18), transparent 60%);
  pointer-events: none;
}
.pm-hero .container { position: relative; z-index: 1; }
.pm-eyebrow {
  display: inline-block;
  background: rgba(37,99,235,.18);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.35);
  border-radius: 22px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pm-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 16px;
  line-height: 1.05;
}
.pm-hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.78);
  max-width: 720px;
  margin: 0 0 28px;
}
.pm-meta {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px;
  color: rgba(255,255,255,.65); font-size: .92rem;
}
.pm-meta span { display: inline-flex; align-items: center; gap: 8px; }
.pm-meta i { color: #60a5fa; }
.pm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn-pm-primary {
  background: var(--brand-blue);
  color: #fff; border: none;
  padding: 12px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-pm-primary:hover { background: var(--brand-blue-hover); color: #fff; }
.btn-pm-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 12px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-pm-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Article body */
.pm-article {
  max-width: 860px; margin: 0 auto;
  padding: 72px 24px 96px;
  font-size: 1.05rem;
}
.pm-article h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 56px 0 18px;
  color: var(--brand-dark);
}
.pm-article h3 {
  font-size: 1.3rem; font-weight: 700;
  margin: 36px 0 14px;
  color: var(--brand-dark);
}
.pm-article p { margin: 0 0 18px; color: #334155; }
.pm-article a { color: var(--brand-blue); text-decoration: none; font-weight: 500; }
.pm-article a:hover { text-decoration: underline; }
.pm-article ul, .pm-article ol { margin: 0 0 20px; padding-left: 24px; color: #334155; }
.pm-article li { margin: 6px 0; }
.pm-article strong { color: var(--brand-dark); }
.pm-article blockquote {
  border-left: 4px solid var(--brand-blue);
  background: var(--soft);
  margin: 24px 0; padding: 18px 24px;
  color: #334155; font-style: italic;
  border-radius: 0 8px 8px 0;
}
.pm-article img.embedded {
  max-width: 100%; border-radius: 12px; margin: 24px 0;
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
}

/* Fact strip */
.pm-facts {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 36px 0;
}
.pm-facts h3 {
  margin: 0 0 16px; font-size: 1.1rem;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.pm-facts ul { list-style: none; padding: 0; margin: 0; column-count: 1; }
@media (min-width: 720px) {
  .pm-facts ul { column-count: 2; column-gap: 32px; }
}
.pm-facts li {
  position: relative; padding-left: 24px; margin: 8px 0;
  break-inside: avoid; color: #1e293b; font-size: .96rem;
}
.pm-facts li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--brand-blue); font-weight: 800;
}

/* What we manage callout */
.pm-manage {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff; border-radius: 14px;
  padding: 36px 36px 28px;
  margin: 48px 0;
}
.pm-manage h3 {
  color: #fff;
  font-size: 1.5rem; font-weight: 800; margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.pm-manage h3 i { color: #60a5fa; }
.pm-manage ul { list-style: none; padding: 0; margin: 0; }
.pm-manage li {
  padding: 8px 0 8px 24px; position: relative; font-size: .98rem;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pm-manage li:last-child { border-bottom: none; }
.pm-manage li::before {
  content: '→'; position: absolute; left: 0; top: 8px;
  color: #60a5fa; font-weight: 800;
}

/* Visit CTA strip */
.pm-cta {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 24px;
  text-align: center;
}
.pm-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; margin: 0 0 12px;
  color: var(--brand-dark);
}
.pm-cta p { color: #475569; max-width: 540px; margin: 0 auto 24px; }

/* Breadcrumb */
.pm-breadcrumb {
  font-size: .88rem; color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}
.pm-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.pm-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.pm-breadcrumb i { font-size: .65rem; margin: 0 8px; opacity: .5; }

/* Footer (matches main site) */
.pm-footer {
  background: #020617; color: #475569;
  text-align: center; padding: 24px;
  font-size: 13px;
}
.pm-footer a { color: #94a3b8; text-decoration: none; }
.pm-footer a:hover { color: #cbd5e1; }

/* Projects hub */
.pm-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  max-width: 1140px; margin: 0 auto;
}
@media (min-width: 720px) { .pm-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pm-grid { grid-template-columns: 1fr 1fr 1fr; } }
.pm-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,23,42,.12);
  border-color: var(--brand-blue-soft);
  color: inherit;
}
.pm-card-cover {
  aspect-ratio: 1200/630;
  background-size: cover;
  background-position: center;
  background-color: var(--brand-dark);
}
.pm-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.pm-card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.pm-card-tag i { color: var(--brand-blue); }
.pm-card-body h3 {
  margin: 0 0 8px; font-size: 1.25rem; font-weight: 800;
  color: var(--brand-dark);
}
.pm-card-body p { margin: 0 0 14px; color: #475569; font-size: .95rem; flex: 1; }
.pm-card-link {
  color: var(--brand-blue);
  font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
