/* ============================================================
   ADL Business Consulting — Shared Blog Stylesheet
   Applied to: /blog/index.html + all article pages
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; background: #fff; color: #0d1f3c; line-height: 1.6; }
a { color: #1a3d6e; }

/* ── Reading progress bar (I4) ───────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: #67cbea; z-index: 300; width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Nav (L7: standardized to 80px) ─────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(20,43,86,0.10);
  border-bottom: 1px solid rgba(20,43,86,0.08);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; /* L7: was 72px */
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-adl { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; color: #67cbea; }
.nav-logo-text { font-size: 13px; font-weight: 600; color: #1a3d6e; margin-left: 8px; line-height: 1.2; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #1a3d6e; text-decoration: none; transition: background 0.2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(26,61,110,0.08); }
.nav-cta { margin-left: 8px; padding: 9px 20px; border-radius: 100px; background: #67cbea; color: #142b56 !important; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform 0.15s; }
.nav-cta:hover { transform: translateY(-1px); background: #67cbea !important; }

/* ── Hamburger (M3 / F-11: X icon when open) ────────────── */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; color: #1a3d6e; transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(26,61,110,0.08); }
.nav-hamburger .icon-open { display: none; }
.nav-hamburger.open .icon-bars { display: none; }
.nav-hamburger.open .icon-open { display: flex; }

.nav-mobile {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 80px; left: 0; right: 0; z-index: 99;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(20,43,86,0.15);
  border-bottom: 1px solid rgba(20,43,86,0.08);
  padding: 12px 16px 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 11px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: #1a3d6e; text-decoration: none; transition: background 0.2s;
}
.nav-mobile a:hover { background: rgba(26,61,110,0.07); }
.nav-mobile .nav-cta-mobile {
  margin-top: 8px; text-align: center;
  background: #67cbea !important; color: #142b56 !important;
  font-weight: 700; border-radius: 100px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Breadcrumb (I2) ─────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: #7a8a9e; margin-bottom: 32px;
}
.breadcrumb a { color: #5a6a82; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.breadcrumb a:hover { color: #1a3d6e; }
.breadcrumb .sep { color: #b0bac8; font-size: 15px; }
.breadcrumb .current { color: #0d1f3c; font-weight: 600; }

/* ── Article layout ──────────────────────────────────────── */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 56px 24px 100px; }

.post-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(26,61,110,0.09); color: #142b56; margin-bottom: 16px;
}
h1 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; color: #0d1f3c; margin-bottom: 20px; text-wrap: balance;
}
.post-meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(20,43,86,0.1); flex-wrap: wrap;
}
.author-badge { display: flex; align-items: center; gap: 10px; }
.author-initials {
  width: 38px; height: 38px; border-radius: 50%;
  background: #1a3d6e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
img.author-initials, img.author-dot { object-fit: cover; background: none; }
.author-name { font-size: 14px; font-weight: 600; color: #0d1f3c; }
.post-date, .read-time { font-size: 13px; color: #7a8a9e; }

/* ── Article banner (F-02: topic-specific SVG) ───────────── */
.article-banner {
  margin: 0 0 40px;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}
.article-banner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Article body ────────────────────────────────────────── */
.article-body h2 {
  font-size: clamp(20px, 2.5vw, 26px); font-weight: 800;
  color: #0d1f3c; letter-spacing: -0.03em;
  margin: 48px 0 16px; line-height: 1.2;
}
.article-body p { font-size: 17px; line-height: 1.75; color: #2a3a52; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 17px; line-height: 1.75; color: #2a3a52; margin-bottom: 8px; }
.article-body strong { color: #0d1f3c; font-weight: 700; }
em { font-style: italic; }

/* ── Callouts (L6: styled with icon prefix) ──────────────── */
.callout {
  background: rgba(26,61,110,0.05);
  border-left: 4px solid #1a3d6e;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px 18px 52px;
  margin: 32px 0;
  position: relative;
}
.callout::before {
  content: "💡";
  position: absolute; left: 16px; top: 18px; font-size: 18px; line-height: 1;
}
.callout p { margin: 0; font-size: 16px; color: #1a3d6e; font-weight: 500; line-height: 1.65; }

.callout.warning {
  background: rgba(180,50,40,0.05);
  border-left-color: #b43228;
}
.callout.warning::before { content: "⚠️"; }
.callout.warning p { color: #8a2318; }

/* ── Data tables ─────────────────────────────────────────── */
.number-table {
  width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px;
  overflow-x: auto; display: block;
}
.number-table th {
  background: #0d1f3c; color: #fff; padding: 10px 16px;
  text-align: left; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.number-table td { padding: 10px 16px; border-bottom: 1px solid rgba(20,43,86,0.08); color: #2a3a52; }
.number-table tr:last-child td { border-bottom: none; }
.number-table tr:nth-child(even) td { background: rgba(26,61,110,0.03); }

/* ── QuickBooks mistake headers ──────────────────────────── */
.mistake-header {
  display: flex; align-items: center; gap: 14px;
  font-size: 19px; font-weight: 800; color: #0d1f3c;
  letter-spacing: -0.02em; margin: 40px 0 12px; line-height: 1.25;
}
.mistake-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #1a3d6e; color: #fff; font-size: 14px; font-weight: 800;
}

/* ── Bookkeeping habit cards ─────────────────────────────── */
.habit-card {
  background: #f7f9fc; border: 1px solid rgba(20,43,86,0.09);
  border-radius: 16px; padding: 28px 28px 24px; margin: 24px 0;
}
.habit-card h2 {
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; color: #0d1f3c;
  letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.2;
}
.habit-card p { font-size: 16.5px; line-height: 1.75; color: #2a3a52; margin-bottom: 16px; }
.habit-card p:last-child { margin-bottom: 0; }
.habit-card strong { color: #0d1f3c; }
.habit-card-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #67cbea; margin-bottom: 8px;
}
.habit-card .callout { background: rgba(26,61,110,0.06); }

/* ── CTA box ─────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #0d1f3c, #1a3d6e);
  border-radius: 20px; padding: 40px 36px; margin: 56px 0; text-align: center;
}
.cta-box h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-box p { font-size: 16px; color: rgba(255,255,255,0.72); margin-bottom: 28px; }
.cta-btn {
  display: inline-block; padding: 14px 32px; border-radius: 100px;
  background: #67cbea; color: #142b56; font-weight: 800; font-size: 15px;
  text-decoration: none; transition: transform 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); color: #142b56; }

/* ── Author box ──────────────────────────────────────────── */
.author-box {
  border: 1px solid rgba(20,43,86,0.1); border-radius: 16px;
  padding: 28px; margin-top: 56px;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-box .author-initials { width: 52px; height: 52px; font-size: 16px; flex-shrink: 0; }
.author-box h4 { font-size: 16px; font-weight: 700; color: #0d1f3c; margin-bottom: 6px; }
.author-box p { font-size: 14px; color: #5a6a82; line-height: 1.6; margin: 0; }

/* ── Related posts ───────────────────────────────────────── */
.related { margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(20,43,86,0.1); }
.related h3 { font-size: 18px; font-weight: 700; color: #0d1f3c; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card {
  display: block; padding: 20px; border-radius: 12px;
  border: 1px solid rgba(20,43,86,0.1); text-decoration: none;
  transition: all 0.2s; background: #f7f9fc;
}
.related-card:hover { border-color: #1a3d6e; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,61,110,0.1); }
.related-card .rtag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #1a6a8a; margin-bottom: 8px; }
.related-card h4 { font-size: 14px; font-weight: 700; color: #0d1f3c; line-height: 1.3; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #0a172e; padding: 40px 24px 28px;
  color: rgba(255,255,255,0.6); margin-top: 0;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
}
.footer-disclaimer {
  max-width: 1140px; margin: 0 auto 24px;
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 14px 18px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-contact a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.footer-contact a:hover { color: #67cbea; }

/* ── Blog index page ─────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3d6e 100%);
  padding: 72px 24px 80px; text-align: center;
}
.page-header .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #67cbea; margin-bottom: 16px;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  color: #fff; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px;
}
.page-header p { font-size: 18px; color: rgba(255,255,255,0.68); max-width: 520px; margin: 0 auto; line-height: 1.65; }

.blog-wrap { max-width: 1140px; margin: 0 auto; padding: 72px 24px 100px; }

.featured-post {
  display: block; background: #f7f9fc; border-radius: 20px;
  padding: 48px; margin-bottom: 64px;
  border: 1px solid rgba(20,43,86,0.08);
  text-decoration: none; color: inherit; transition: all 0.22s;
}
.featured-post:hover { border-color: #1a3d6e; box-shadow: 0 8px 40px rgba(26,61,110,0.12); transform: translateY(-3px); }
@media (max-width: 700px) { .featured-post { padding: 32px 24px; } }
.featured-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #67cbea; margin-bottom: 12px; }
.featured-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 100px;
  background: rgba(26,61,110,0.09); color: #142b56; margin-bottom: 16px;
}
.featured-post h2 {
  font-size: clamp(22px, 2.8vw, 30px); font-weight: 800;
  color: #0d1f3c; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px;
}
.featured-post .excerpt { font-size: 16px; color: #5a6a82; line-height: 1.7; margin-bottom: 24px; }
.featured-post .meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.meta-author { display: flex; align-items: center; gap: 8px; }
.author-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: #1a3d6e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.meta-author span { font-size: 13px; font-weight: 600; color: #0d1f3c; }
.meta-date, .meta-read { font-size: 13px; color: #7a8a9e; }
.meta-sep { font-size: 13px; color: #b0bac8; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #1a3d6e; margin-top: 8px; }
.read-more svg { transition: transform 0.2s; }
.featured-post:hover .read-more svg { transform: translateX(4px); }

.posts-heading { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7a8a9e; margin-bottom: 24px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: 16px; border: 1.5px solid rgba(20,43,86,0.09);
  background: #fff; text-decoration: none; color: inherit; transition: all 0.22s;
}
.post-card:hover { border-color: #1a3d6e; box-shadow: 0 8px 32px rgba(26,61,110,0.1); transform: translateY(-3px); }
.post-card h3 { font-size: 17px; font-weight: 800; color: #0d1f3c; letter-spacing: -0.02em; line-height: 1.3; }
.post-card .excerpt { font-size: 14.5px; color: #5a6a82; line-height: 1.65; flex: 1; }
.post-card .card-meta {
  display: flex; gap: 10px; align-items: center;
  padding-top: 14px; border-top: 1px solid rgba(20,43,86,0.07); flex-wrap: wrap;
}
.card-meta .meta-date, .card-meta .meta-read { font-size: 12.5px; color: #7a8a9e; }
.card-read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #1a3d6e; margin-left: auto; }
.card-read-more svg { transition: transform 0.2s; }
.post-card:hover .card-read-more svg { transform: translateX(3px); }

.cta-strip {
  margin-top: 80px;
  background: linear-gradient(135deg, #0d1f3c, #1a3d6e);
  border-radius: 20px; padding: 48px 40px; text-align: center;
}
.cta-strip h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-strip p { font-size: 16px; color: rgba(255,255,255,0.68); margin-bottom: 28px; }
