/* Genesis Business Systems — blog stylesheet.
   Reuses the site design tokens + header/nav/footer from index.html,
   plus an article typography layer for readable long-form posts. */

:root {
  --navy: #0d1b3e;
  --navy-800: #122349;
  --navy-700: #1b3163;
  --blue: #2f5fd0;
  --blue-light: #4d7ce8;
  --accent: #e0a458;      /* warm gold */
  --accent-dark: #c9893a;
  --ink: #17223b;
  --slate: #4a5670;
  --muted: #6b7690;
  --line: #e5e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-navy-soft: #f2f5fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(13, 27, 62, 0.06);
  --shadow: 0 14px 40px rgba(13, 27, 62, 0.10);
  --shadow-lg: 0 30px 70px rgba(13, 27, 62, 0.16);
  --maxw: 1140px;
  --measure: 720px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-family: var(--serif); font-weight: 600; }
h2 { font-family: var(--serif); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.eyebrow.on-dark { color: var(--accent); }

/* Buttons (copied from index.html) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 17px 30px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: #35240a;
  box-shadow: 0 10px 26px rgba(224, 164, 88, 0.42);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224, 164, 88, 0.5); }
.btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-dark {
  background: var(--navy); color: var(--white);
  box-shadow: 0 10px 26px rgba(13, 27, 62, 0.28);
}
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); color: var(--white); }
.btn-lg { padding: 19px 38px; font-size: 17px; }

/* Header (copied from index.html) */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: grid; place-items: center; color: #fff;
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.brand .brand-name { font-size: 18px; line-height: 1.1; }
.brand .brand-name small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }

/* ---- Article / blog layer ---- */

/* Post hero band (navy, matches the site's dark treatment) */
.post-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(79, 124, 232, 0.22), transparent 60%),
    radial-gradient(700px 420px at 6% 120%, rgba(224, 164, 88, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1734 0%, #0d1b3e 60%, #10204a 100%);
  color: #eef2fb;
  padding: 66px 0 60px;
}
.post-hero .grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 70% at 40% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 40% 20%, #000 40%, transparent 100%);
}
.post-hero .wrap { position: relative; max-width: var(--measure); }
.post-hero .crumbs { font-size: 14px; color: #a9b6d6; margin-bottom: 18px; }
.post-hero .crumbs a { color: #c5d0e8; }
.post-hero .crumbs a:hover { color: #fff; }
.post-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px); color: #fff; margin: 0;
  max-width: 15ch;
}
.post-hero .kicker { color: var(--accent); }

/* Article body — readable measure */
.article { padding: 56px 0 40px; }
.article .wrap { max-width: var(--measure); }
.article-body { font-size: 18px; color: var(--ink); }
.article-body p { margin: 0 0 1.25em; }
.article-body h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(23px, 3vw, 30px);
  color: var(--navy);
  margin: 1.9em 0 0.55em;
  letter-spacing: -0.02em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body ul { margin: 0 0 1.35em; padding: 0; list-style: none; }
.article-body ul li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink);
}
.article-body ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-navy-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232f5fd0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.article-body a { color: var(--blue); font-weight: 500; border-bottom: 1px solid rgba(47,95,208,0.35); }
.article-body a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); text-decoration: none; }
.article-body strong { color: var(--navy); font-weight: 700; }
/* The bold closing line stands apart as a pull-statement */
.article-body .closing {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 3vw, 27px);
  color: var(--navy); letter-spacing: -0.02em; line-height: 1.3;
  margin: 1.6em 0 0.2em;
}
.article-body .closing strong { color: var(--navy); font-weight: 600; }
hr.rule { border: 0; border-top: 2px solid var(--accent); opacity: .5; max-width: 60px; margin: 2.2em 0; }

/* In-post CTA block — mirrors the site's navy assessment card */
.post-cta {
  max-width: var(--measure); margin: 8px auto 0; padding: 0 24px;
}
.post-cta .cta-inner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(224,164,88,0.16), transparent 60%),
    linear-gradient(135deg, #0d1b3e 0%, #10204a 100%);
  border: 1px solid rgba(224,164,88,0.45);
  border-radius: 22px; padding: 40px 40px 42px; color: #eef2fb;
  box-shadow: var(--shadow);
}
.post-cta .eyebrow { color: var(--accent); }
.post-cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); color: #fff; margin: 0 0 12px; }
.post-cta p { color: #d7dff2; font-size: 16.5px; margin: 0 0 22px; max-width: 52ch; }
.post-cta .cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.post-cta .fine { margin: 18px 0 0; font-size: 13px; color: #9fb0d4; line-height: 1.5; }

/* Read-more nav between posts */
.post-more { max-width: var(--measure); margin: 0 auto; padding: 44px 24px 8px; }
.post-more .eyebrow { display: block; }
.post-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-more ul li a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; color: var(--navy); font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-more ul li a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3dcef; text-decoration: none; }

/* ---- Blog index / listing ---- */
.blog-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 82% -8%, rgba(79, 124, 232, 0.22), transparent 60%),
    radial-gradient(800px 460px at 8% 120%, rgba(224, 164, 88, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1734 0%, #0d1b3e 55%, #10204a 100%);
  color: #eef2fb; padding: 76px 0 68px; text-align: center;
}
.blog-hero .grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 40%, transparent 100%);
}
.blog-hero .wrap { position: relative; max-width: 760px; }
.blog-hero h1 { font-size: clamp(32px, 5vw, 50px); color: #fff; margin-bottom: 16px; }
.blog-hero p { font-size: 19px; color: #c5d0e8; margin: 0; }

.post-list { padding: 72px 0 40px; }
.post-list .wrap { max-width: 860px; }
.post-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 34px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dcef; }
.post-card .p-num { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--accent-dark); letter-spacing: 0.04em; }
.post-card h2 { font-family: var(--serif); font-size: clamp(21px, 2.6vw, 26px); margin: 8px 0 12px; }
.post-card h2 a { color: var(--navy); }
.post-card h2 a:hover { color: var(--blue); text-decoration: none; }
.post-card .excerpt { color: var(--slate); font-size: 16.5px; margin: 0 0 18px; }
.post-card .read {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); font-size: 15.5px;
}
.post-card .read:hover { color: var(--accent-dark); text-decoration: none; }
.post-card .read svg { transition: transform .18s ease; }
.post-card .read:hover svg { transform: translateX(3px); }

.list-cta { max-width: 860px; margin: 20px auto 0; padding: 0 24px; }

/* Footer (copied from index.html) */
footer { background: #091026; color: #9aa6c4; padding: 56px 0 34px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.foot-brand .fb-name { color: #fff; font-weight: 700; font-size: 17px; }
.foot-brand .fb-name small { display: block; font-weight: 500; color: #7d8ab0; font-size: 12.5px; letter-spacing: 0.03em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-links a { color: #b7c1dc; font-size: 14.5px; }
.foot-links a:hover { color: #fff; text-decoration: none; }
.foot-social { display:flex; gap:18px; align-items:center; margin:22px 0 4px; }
.foot-social a { color:#9aa6c4; display:inline-flex; transition:color .2s; }
.foot-social a:hover { color:#e0a850; }
.foot-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #7d8ab0; }
.foot-bottom .tag { color: var(--accent); font-weight: 600; }
.foot-bottom a { color:#9aa6c4; }

/* Responsive (mirrors index.html breakpoints) */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  header.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: 74px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  header.open .nav-links a { padding: 10px 0; width: 100%; font-size: 16px; }
  header.open .nav-links .btn { display: inline-flex; margin-top: 8px; width: 100%; }
  .post-hero { padding: 48px 0 44px; }
  .article { padding: 40px 0 32px; }
  .article-body { font-size: 17px; }
  .post-cta .cta-inner { padding: 30px 24px 32px; }
  .post-card { padding: 26px 24px; }
  .btn { white-space: normal; text-align: center; }
}
