/* ── MG Consulting — blog styles ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #0a0908;
  --ink-2:   #111010;
  --panel:   #1c1916;
  --accent:  #e8630a;
  --accent-d:rgba(232,99,10,.12);
  --text:    #ede9e3;
  --muted:   #7a7060;
  --rule:    rgba(237,233,227,.07);
  --ease:    cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#prog {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 999;
  transition: width .1s linear;
}

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo-img {
  height: 46px;
  width: auto;
  transition: opacity .2s;
}
.nav-logo-img:hover { opacity: .85; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.nav-back:hover { color: var(--accent); }
.nav-back i { font-size: 9px; transition: transform .25s var(--ease); }
.nav-back:hover i { transform: translateX(-3px); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── ARTICLE ─────────────────────────────────── */
.post-wrap { max-width: 720px; margin: 0 auto; padding: 0 36px; }

.post-hero {
  margin-top: 74px;
  height: 340px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.post-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.6) brightness(.52);
}
.post-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 2%, transparent 65%);
}

.post-head { padding: 46px 0 0; }
.pmeta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.pmeta span { color: var(--muted); }

.ptitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(32px,4.6vw,50px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}

/* author */
.pauthor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}
.pauthor-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url('../mohan.jpg');
  background-size: 300%;
  background-position: 36% 11%;
  border: 1px solid var(--rule);
  filter: saturate(.85);
  transition: border-color .2s;
}
.pauthor-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.pauthor-name { font-size: 14px; font-weight: 700; transition: color .2s; }
.pauthor-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.pauthor-li {
  margin-left: 4px;
  width: 28px; height: 28px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
}
.pauthor:hover .pauthor-name { color: var(--accent); }
.pauthor:hover .pauthor-av   { border-color: var(--accent); }
.pauthor:hover .pauthor-li   { border-color: var(--accent); color: var(--accent); }

/* body copy */
.pbody { padding-bottom: 20px; }
.pbody p {
  font-size: 16.5px;
  line-height: 1.88;
  color: var(--muted);
  margin-bottom: 22px;
}
.pbody h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 44px 0 16px;
}
.pbody strong { color: var(--text); font-weight: 600; }
.pbody em { color: var(--text); }
.pbody ol, .pbody ul { margin: 0 0 22px; padding-left: 22px; }
.pbody li {
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--muted);
  margin-bottom: 11px;
}
.pbody li::marker { color: var(--accent); }

.pnote {
  border-left: 2px solid var(--accent);
  background: var(--accent-d);
  padding: 18px 22px;
  border-radius: 0 6px 6px 0;
  margin: 36px 0;
}
.pnote p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.78; }

.ptags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.ptag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 6px 11px;
}

/* end CTA */
.pcta {
  margin: 64px 0 0;
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-align: center;
}
.pcta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px,3vw,32px);
  line-height: 1.16;
  margin-bottom: 12px;
}
.pcta p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 26px;
}
.pcta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-fill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 13px 26px; border-radius: 3px;
  transition: opacity .2s, transform .2s;
}
.btn-fill:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  font-weight: 600; font-size: 13px;
  padding: 12px 24px; border-radius: 3px;
  border: 1px solid var(--rule);
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* more posts */
.pmore { margin-top: 76px; }
.pmore-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.pmore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pmore-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 24px;
  transition: border-color .3s, transform .3s var(--ease);
}
.pmore-card:hover { border-color: rgba(232,99,10,.35); transform: translateY(-3px); }
.pmore-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.pmore-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.pmore-card:hover .pmore-title { color: var(--accent); }

/* ── BLOG INDEX ──────────────────────────────── */
.list-wrap { max-width: 1100px; margin: 0 auto; padding: 0 36px; }
.list-head { padding: 150px 0 52px; }
.list-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.list-eyebrow span:first-child { width: 22px; height: 1px; background: var(--accent); }
.list-eyebrow span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.list-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(38px,5vw,60px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.list-head p { font-size: 15px; color: var(--muted); max-width: 440px; line-height: 1.7; }

.list-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-bottom: 100px; }
.list-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.list-card:hover {
  border-color: rgba(232,99,10,.35);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.list-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.list-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.6) brightness(.62);
  transition: filter .45s, transform .6s var(--ease);
}
.list-card:hover .list-img img { filter: saturate(.85) brightness(.78); transform: scale(1.05); }
.list-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,22,.92), transparent 58%);
}
.list-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.list-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.list-meta span { color: var(--muted); }
.list-title { font-size: 17px; font-weight: 700; line-height: 1.32; margin-bottom: 10px; }
.list-excerpt { font-size: 13px; color: var(--muted); line-height: 1.72; margin-bottom: 18px; flex: 1; }
.list-read {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.list-read i { font-size: 9px; transition: transform .25s var(--ease); }
.list-card:hover .list-read i { transform: translateX(4px); }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding: 34px 0;
  margin-top: 100px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-logo-img { height: 38px; width: auto; opacity: .75; }
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}
.footer-social { display: flex; gap: 8px; }
.soc {
  width: 34px; height: 34px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--muted);
  transition: border-color .2s, color .2s, transform .2s;
}
.soc:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── WA FLOAT ────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 99;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.55); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .list-grid  { grid-template-columns: 1fr; }
  .pmore-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-inner, .post-wrap, .list-wrap, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .post-hero  { height: 220px; }
  .post-head  { padding-top: 32px; }
  .pcta       { padding: 30px 22px; }
  .list-head  { padding: 120px 0 40px; }
  .nav-back span { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
