/* ── Trustworthy IT — Blog stylesheet ── */
:root {
  --green:     #339656;
  --green-hi:  #42b86c;
  --green-dim: rgba(51,150,86,.1);
  --green-gl:  rgba(51,150,86,.22);
  --bg:        #080909;
  --bg2:       #0c0d0f;
  --bg3:       #0e0f11;
  --surface:   #141618;
  --surface2:  #1a1c1f;
  --border:    rgba(255,255,255,0.07);
  --border-g:  rgba(51,150,86,0.2);
  --white:     #edf2f6;
  --muted:     #4a5260;
  --muted2:    #7d8c9a;
  --mono:      'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.label-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.label-tag::before { content: ''; display: block; width: 18px; height: 1.5px; background: var(--green); }

/* ── FULL SITE HEADER (blog index) ── */
header.site-header {
  position: sticky; top: 0; z-index: 200;
  transition: background .4s, box-shadow .4s;
}
header.site-header.solid {
  background: rgba(8,9,9,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { height: 48px; transition: height .3s; flex-shrink: 0; }
header.site-header.solid .logo { height: 36px; }
nav { display: flex; gap: 32px; }
nav a {
  font-size: 14px; font-weight: 500;
  color: var(--muted2); text-decoration: none;
  transition: color .2s; white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--white); }
.nav-pill {
  font-size: 13.5px; font-weight: 700;
  color: #fff; background: var(--green);
  padding: 9px 20px; border-radius: 100px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.nav-pill:hover {
  background: var(--green-hi);
  box-shadow: 0 4px 20px rgba(51,150,86,.4);
  transform: translateY(-1px);
}
.nav-mobile-btn {
  display: none;
  background: none; border: none;
  padding: 8px; cursor: pointer;
  color: var(--muted2);
}
#mobile-nav { display: none; }
#mobile-nav.open { display: flex; }

@media (max-width: 960px) {
  nav { display: none; }
  .nav-mobile-btn { display: flex; }
}

/* ── SIMPLE POST HEADER (article pages) ── */
header.post-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,9,9,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.post-header .nav-inner {
  max-width: 860px; margin: 0 auto; padding: 0 40px;
}
.post-header .logo { height: 36px; }
.back-link {
  font-size: 13.5px; font-weight: 500;
  color: var(--muted2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.back-link:hover { color: var(--white); }

/* ── BLOG INDEX HERO ── */
.blog-hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(51,150,86,.16) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 65% 30%, black 10%, transparent 75%);
  pointer-events: none;
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 900; letter-spacing: -.035em;
  line-height: 1.1; color: var(--white);
  margin-bottom: 18px; text-wrap: balance;
  position: relative; z-index: 1;
}
.blog-hero p {
  font-size: 1.05rem; color: var(--muted2);
  line-height: 1.75; max-width: 560px;
  position: relative; z-index: 1;
}

/* ── POST CARD GRID ── */
.blog-grid-wrap { padding: 0 0 100px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.post-card {
  background: var(--surface);
  padding: 36px 34px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none;
  position: relative;
  transition: background .25s;
}
.post-card:hover { background: var(--surface2); }
.post-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0; transition: opacity .3s;
}
.post-card:hover::after { opacity: 1; }
.post-card:first-child {
  grid-column: 1 / -1;
}
.post-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-hi);
}
.post-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.post-card h2, .post-card h3 {
  font-size: 1.25rem; font-weight: 800;
  color: var(--white); letter-spacing: -.015em;
  line-height: 1.28;
}
.post-card:first-child h2 { font-size: 1.55rem; max-width: 720px; }
.post-card p.post-excerpt {
  font-size: .92rem; color: var(--muted2);
  line-height: 1.7; flex: 1;
}
.post-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .03em;
  display: flex; align-items: center; gap: 8px;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.post-readmore {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 700; color: var(--green-hi);
  margin-top: 4px;
}
.post-readmore svg { width: 13px; height: 13px; transition: transform .2s; }
.post-card:hover .post-readmore svg { transform: translateX(3px); }

@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card:first-child h2 { font-size: 1.3rem; }
}

/* ── ARTICLE PAGE ── */
.post-article-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.post-article-hero .container { max-width: 760px; }
.post-article-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 900; letter-spacing: -.03em;
  line-height: 1.16; color: var(--white); margin-bottom: 18px;
}
.post-article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.post-article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.post-body { padding: 52px 0 100px; }
.post-body .container { max-width: 760px; }
.post-body p { color: var(--muted2); font-size: 1rem; line-height: 1.85; margin-bottom: 18px; }
.post-body h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  letter-spacing: -.02em; margin: 40px 0 16px;
}
.post-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--white);
  letter-spacing: -.01em; margin: 32px 0 12px;
}
.post-body ul, .post-body ol {
  color: var(--muted2); font-size: 1rem; line-height: 1.8;
  margin: 0 0 20px 1.3em;
}
.post-body li { margin-bottom: 10px; }
.post-body li strong { color: var(--white); }
.post-body strong { color: var(--white); font-weight: 700; }

.note-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 8px 0 28px;
}
.note-box h4 {
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--green-hi); margin-bottom: 8px;
  font-family: var(--mono); text-transform: uppercase; font-size: 11px;
}
.note-box p { margin-bottom: 0; }

.stat-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin: 12px 0 32px;
}
.stat-card { background: var(--surface); padding: 28px 26px; }
.stat-num {
  font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em;
  color: var(--green-hi); margin-bottom: 6px;
}
.stat-label { font-size: .85rem; color: var(--muted2); line-height: 1.6; }
@media (max-width: 600px) { .stat-row { grid-template-columns: 1fr; } }

.post-cta {
  background: rgba(51,150,86,.06);
  border: 1px solid var(--border-g);
  border-radius: 14px;
  padding: 32px 36px;
  margin-top: 44px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
.post-cta p {
  font-size: 1.02rem; color: var(--white);
  font-weight: 600; line-height: 1.6; margin: 0;
}
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; background: var(--green);
  color: #fff; font-weight: 700; font-size: .95rem;
  border-radius: 8px; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-solid:hover {
  background: var(--green-hi); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(51,150,86,.35);
}

.post-nav-footer {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-nav-footer a {
  color: var(--muted2); font-size: .9rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.post-nav-footer a:hover { color: var(--green-hi); }

/* ── FOOTER (shared) ── */
footer.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 32px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-logo { height: 30px; opacity: .5; }
.foot-copy { font-size: .8rem; color: var(--muted); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: .8rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--white); }
.foot-legal { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .72rem; color: var(--muted); }
.foot-legal a { color: var(--muted); transition: color .2s; }
.foot-legal a:hover { color: var(--white); }

@media (max-width: 600px) {
  .container { padding: 0 24px; }
  .post-header .nav-inner { padding: 0 24px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-links { flex-wrap: wrap; gap: 16px; }
  .blog-hero { padding: 64px 0 48px; }
  .post-article-hero { padding: 52px 0 32px; }
  .post-cta { padding: 26px 24px; }
}
