/* ═══════════════════════════════════════════════
   Creative Care Chiropractic — Blog Stylesheet
   Matches live site: creativecarechiro.com
   White · Cormorant Garamond · Jost · #2D5A27
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --white:        #ffffff;
  --off-white:    #f9f8f6;
  --ink:          #1e1e1a;
  --ink-soft:     #3a3a36;
  --ink-muted:    rgba(30,30,26,0.50);
  --ink-faint:    rgba(30,30,26,0.10);
  --forest:       #2D5A27;
  --forest-hover: #3a7433;
  --rule:         rgba(30,30,26,0.09);
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Jost', 'Helvetica Neue', sans-serif;
  --nav-h:        68px;
  --max:          1200px;
  --ease:         cubic-bezier(0.25,0.46,0.45,0.94);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* subtle dot texture matching live site */
  background-image: radial-gradient(circle, rgba(30,30,26,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── containers ── */
.wrap  { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.wrap--narrow { max-width: 840px; }
.wrap--mid    { max-width: 1000px; }

/* ── type primitives ── */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  display: block;
  margin-bottom: 14px;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.06;
  color: var(--ink);
}
.display em { font-style: italic; }
.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.body {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-muted);
}

/* ── buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 36px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-forest {
  background: var(--forest);
  color: #fff;
  border: 1px solid var(--forest);
}
.btn-forest:hover { background: var(--forest-hover); border-color: var(--forest-hover); }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid rgba(45,90,39,0.35);
}
.btn-outline:hover { border-color: var(--forest); background: rgba(45,90,39,0.04); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: rgba(30,30,26,0.25); }

/* ── reveal animation ── */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; }
.rv.d4 { transition-delay: .32s; }
.rv.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-faint);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex-shrink: 0;
}
.nav__logo-top {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__logo-sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 300;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--forest); }
.nav__links .nav-book {
  background: var(--forest);
  color: #fff !important;
  padding: 10px 22px;
  letter-spacing: 0.18em;
  font-size: 10px;
  transition: background .2s !important;
}
.nav__links .nav-book:hover { background: var(--forest-hover) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--rule);
  padding: 24px 48px 32px;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.nav__mobile a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav__mobile.open { display: flex; }

/* ═══════════════════════════════════
   BLOG INDEX PAGE
═══════════════════════════════════ */
.blog-hero {
  padding: calc(var(--nav-h) + 100px) 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.blog-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.blog-hero__heading {
  font-size: clamp(48px, 7vw, 80px);
  max-width: 640px;
}
.blog-hero__right {
  flex-shrink: 0;
  text-align: right;
  padding-bottom: 8px;
}
.blog-hero__desc {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 300px;
  margin-left: auto;
}

/* Category filter */
.blog-filter {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.blog-filter__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  padding: 8px 18px;
  background: transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filter-btn:hover { color: var(--forest); border-color: rgba(45,90,39,0.30); }
.filter-btn.active {
  color: var(--forest);
  border-color: var(--forest);
  background: rgba(45,90,39,0.05);
}

/* Blog grid */
.blog-main {
  padding: 0 0 120px;
  background: var(--white);
}
.blog-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* featured post — spans 2 cols */
.blog-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { background: var(--off-white); }
.blog-card:hover .card-arrow { transform: translate(3px,-3px); border-color: rgba(45,90,39,0.5); }
.blog-card--featured {
  grid-column: span 2;
  padding: 56px 52px;
  border-right: 1px solid var(--rule);
}
.blog-card--featured .card-title { font-size: 36px; font-style: italic; }
.card-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 400;
  margin-bottom: 16px;
  display: block;
}
.card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.22;
  flex: 1;
  margin-bottom: 16px;
}
.card-excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-muted);
  margin-bottom: 0;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}
.card-date {
  font-size: 10px;
  letter-spacing: 0.10em;
  color: rgba(30,30,26,0.28);
}
.card-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45,90,39,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
  transition: transform .2s, border-color .2s;
}
.card-arrow svg { display: block; }

/* Blog CTA strip */
.blog-cta-strip {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.blog-cta-quote {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-muted);
  max-width: 520px;
  line-height: 1.45;
}

/* ═══════════════════════════════════
   BLOG POST PAGE
═══════════════════════════════════ */
.post-hero {
  padding: calc(var(--nav-h) + 80px) 0 72px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.post-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.post-breadcrumb a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color .2s;
}
.post-breadcrumb a:hover { color: var(--forest); }
.post-breadcrumb span {
  font-size: 10px;
  color: rgba(30,30,26,0.25);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.post-meta__tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 400;
}
.post-meta__sep { color: var(--ink-faint); font-size: 12px; }
.post-meta__date,
.post-meta__author {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.post-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.08;
  color: var(--ink);
  max-width: 860px;
  margin-bottom: 28px;
}
.post-deck {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 700px;
}

/* post layout */
.post-body {
  padding: 80px 0 120px;
}
.post-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}
.post-content h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.22;
  margin: 52px 0 18px;
}
.post-content h2:first-child { margin-top: 0; }
.post-content p {
  font-size: 16.5px;
  line-height: 1.88;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.post-content a {
  color: var(--forest);
  border-bottom: 1px solid rgba(45,90,39,0.28);
  transition: border-color .2s;
}
.post-content a:hover { border-color: var(--forest); }
.post-content ul {
  margin: 0 0 22px 22px;
}
.post-content ul li {
  font-size: 16.5px;
  line-height: 1.88;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  border: 1px solid var(--rule);
  padding: 32px 28px;
  background: var(--off-white);
}
.sidebar-box__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
  display: block;
}
.sidebar-box__headline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 20px;
}
.sidebar-box .btn { display: block; text-align: center; }
.sidebar-box .btn + .btn { margin-top: 8px; }

.sidebar-related__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: block;
}
.sidebar-related a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  transition: color .2s;
  line-height: 1.35;
}
.sidebar-related a:first-of-type { border-top: 1px solid var(--rule); }
.sidebar-related a:hover { color: var(--forest); }
.sidebar-related a svg { flex-shrink: 0; margin-top: 3px; color: var(--forest); opacity: .5; }
.sidebar-related a:hover svg { opacity: 1; }

/* post end CTA */
.post-end-cta {
  background: var(--ink);
  padding: 100px 48px;
  text-align: center;
}
.post-end-cta .eyebrow { color: rgba(255,255,255,0.30); }
.post-end-cta__heading {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 36px;
}
.post-end-cta__actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.post-end-cta .btn-forest { background: var(--forest); border-color: var(--forest); }
.post-end-cta .btn-ghost { color: rgba(255,255,255,0.70); border-color: rgba(255,255,255,0.22); }
.post-end-cta .btn-ghost:hover { border-color: rgba(255,255,255,0.55); color: #fff; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  background: #0f0f0d;
  color: rgba(249,248,246,0.50);
  padding: 80px 0 40px;
}
.footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.footer__brand {}
.footer__logo-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249,248,246,0.85);
  margin-bottom: 2px;
}
.footer__logo-sub {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(249,248,246,0.30);
}
.footer__addr {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer__email {
  font-size: 13px;
  color: rgba(249,248,246,0.40);
  transition: color .2s;
}
.footer__email:hover { color: rgba(249,248,246,0.80); }
.footer__col-head {
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(249,248,246,0.25);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  font-size: 13px;
  color: rgba(249,248,246,0.50);
  transition: color .2s;
}
.footer__col a:hover { color: rgba(249,248,246,0.85); }
.footer__hours {}
.footer__hr {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 16px;
  color: rgba(249,248,246,0.45);
}
.footer__hr span:first-child {
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(249,248,246,0.25);
  padding-top: 2px;
  min-width: 36px;
}
.footer__book {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer__ig {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(249,248,246,0.35);
  transition: color .2s;
}
.footer__ig:hover { color: rgba(249,248,246,0.70); }
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 11px; color: rgba(249,248,246,0.20); }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card--featured { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 860px) {
  .wrap, .nav__inner, .blog-hero__inner, .blog-filter__inner, .blog-grid,
  .blog-cta-strip, .post-hero__inner, .post-layout, .post-end-cta,
  .footer__grid, .footer__bottom { padding-left: 28px; padding-right: 28px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .blog-hero__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .blog-hero__right { text-align: left; }
  .blog-hero__desc { margin-left: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; border-right: none; }
  .blog-cta-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .wrap, .nav__inner, .blog-hero__inner, .blog-filter__inner, .blog-grid,
  .blog-cta-strip, .post-hero__inner, .post-layout, .post-end-cta,
  .footer__grid, .footer__bottom { padding-left: 20px; padding-right: 20px; }
  .nav__mobile { padding-left: 20px; padding-right: 20px; }
  .blog-card, .blog-card--featured { padding: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .post-end-cta__actions { flex-direction: column; align-items: center; }
}
