/* ============================================================================
   SchedulerPro Blog — schedulerpro.io/blog
   Design tokens + nav/footer mirror the main marketing site so the blog reads
   as one continuous property.
   ========================================================================== */

:root {
  --navy:     #1E3A5F;
  --navy-dk:  #0F1D32;
  --teal:     #0D9488;
  --teal-dk:  #0F766E;
  --teal-lt:  #CCFBF1;
  --indigo:   #4338CA;
  --indigo-lt:#EEF2FF;
  --slate:    #475569;
  --slate-lt: #94A3B8;
  --body:     #0F172A;
  --bg:       #FFFFFF;
  --bg-alt:   #F8FAFC;
  --border:   #E2E8F0;
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E3A5F 45%, #134E4A 100%);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 6px rgba(15,23,42,.05), 0 10px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 40px rgba(15,23,42,.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-dk); text-decoration: none; }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4f7a 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Nav (mirrors schedulerpro.io) ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { display: block; flex-shrink: 0; }
.nav-logo-name { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.nav-logo-llc { font-size: 11px; font-weight: 700; color: var(--slate-lt); vertical-align: super; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-size: 14px; font-weight: 600; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--navy); }
.nav-links a.is-active { position: relative; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; bottom: -22px; height: 2px; width: 100%;
  background: var(--teal); border-radius: 2px;
}

/* ── Blog hero ───────────────────────────────────────────────────────────── */
.blog-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  padding: 72px 0 76px;
}
.blog-hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.blog-hero .container { position: relative; }
.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.28);
  color: #6EE7B7; font-size: 13px; font-weight: 700;
  margin-bottom: 22px;
}
.blog-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px rgba(52,211,153,.7); }
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 18px; max-width: 15ch;
}
.blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #34D399, #38BDF8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p { font-size: 1.125rem; color: #CBD5E1; max-width: 60ch; margin: 0; }

/* ── Post list ───────────────────────────────────────────────────────────── */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding: 64px 0 24px;
}
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #CBD5E1; }
.post-card-link { display: block; color: inherit; }
.post-card-link:hover { color: inherit; }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 24px 24px 26px; }
.post-card-body h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 10px; color: var(--navy); }
.post-card-body p { color: var(--slate); font-size: .95rem; margin: 0 0 16px; }

.post-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-dk);
}

.post-meta { display: flex; align-items: center; gap: 8px; color: var(--slate-lt); font-size: 13px; font-weight: 600; }
.post-meta .dot { color: var(--border); }

.post-empty { text-align: center; padding: 96px 0; }
.post-empty h2 { font-size: 1.6rem; color: var(--navy); margin: 0 0 10px; }
.post-empty p { color: var(--slate); margin: 0 0 24px; }

/* ── Article ─────────────────────────────────────────────────────────────── */
.post { padding: 56px 0 24px; }
.post-head { margin-bottom: 36px; }
.post-back { display: inline-block; font-size: 14px; font-weight: 700; color: var(--slate); margin-bottom: 22px; }
.post-back:hover { color: var(--teal-dk); }
.post-head h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 800;
  color: var(--navy); margin: 12px 0 16px;
}
.post-standfirst { font-size: 1.2rem; color: var(--slate); line-height: 1.55; margin: 0 0 20px; }
.post-hero { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.post-hero img { width: 100%; }
.post-hero figcaption { font-size: 13px; color: var(--slate-lt); padding: 10px 4px 0; text-align: center; }

/* Article body typography */
.post-body { font-size: 1.075rem; line-height: 1.75; color: #1E293B; }
.post-body > * + * { margin-top: 1.35em; }
.post-body h2 { font-size: 1.65rem; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); margin-top: 2.2em; }
.post-body h3 { font-size: 1.3rem; line-height: 1.3; color: var(--navy); margin-top: 1.8em; }
.post-body h4 { font-size: 1.08rem; color: var(--navy-dk); margin-top: 1.6em; }
.post-body a { color: var(--teal-dk); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--teal); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin-top: .5em; }
.post-body li::marker { color: var(--teal); }
.post-body img { border-radius: 12px; box-shadow: var(--shadow-sm); margin-left: auto; margin-right: auto; }
.post-body blockquote {
  border-left: 3px solid var(--teal);
  background: var(--bg-alt);
  padding: 16px 22px; margin-left: 0; margin-right: 0;
  border-radius: 0 12px 12px 0;
  color: var(--slate); font-style: italic;
}
.post-body blockquote p { margin: 0; }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--indigo-lt);
  color: var(--indigo);
  padding: 2px 6px; border-radius: 6px;
}
.post-body pre {
  background: var(--navy-dk);
  color: #E2E8F0;
  padding: 20px 22px; border-radius: 12px;
  overflow-x: auto; font-size: .9rem; line-height: 1.6;
}
.post-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.post-body th { background: var(--bg-alt); font-weight: 700; color: var(--navy); }
.post-body figure { margin: 0; }

/* Article CTA */
.post-cta { margin: 56px 0 8px; }
.post-cta-inner {
  background: linear-gradient(160deg, #F0F4FF 0%, #F0FDFA 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px; text-align: center;
}
.post-cta-inner h3 { font-size: 1.5rem; color: var(--navy); margin: 0 0 8px; letter-spacing: -.02em; }
.post-cta-inner p { color: var(--slate); margin: 0 auto 22px; max-width: 46ch; }

/* ── Footer (mirrors schedulerpro.io) ────────────────────────────────────── */
.footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 64px 0 32px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.footer-brand p { font-size: 14px; line-height: 1.6; margin: 16px 0 0; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94A3B8; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-top: 26px;
}
.footer-bottom p { font-size: 13px; margin: 0; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.badge-hipaa { background: rgba(13,148,136,.12); color: #34D399; border: 1px solid rgba(13,148,136,.2); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .post-list { grid-template-columns: 1fr; padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 56px 0 58px; }
  .post-cta-inner { padding: 32px 22px; }
}
