/* Blog styles for tannerbishopphysiotherapy.com/blog/.
   Values are copied from the inline styles in services.html so the blog
   matches the rest of the site. Only what an article page needs lives here. */

/* --- Page shell: same reset and background as the exported pages --- */
body {
  margin: 0;
  background: #fbfaf7;
  font-family: 'Barlow', sans-serif;
  color: #122417;
  -webkit-font-smoothing: antialiased;
}
a { color: #14401f; }
a:hover { color: #0d2c14; }

.tb-page { position: relative; min-height: 100vh; overflow-x: clip; }
.tb-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 88% 8%, rgba(178,200,214,0.22), transparent 60%),
    radial-gradient(900px 700px at 4% 46%, rgba(168,200,184,0.20), transparent 62%),
    radial-gradient(1000px 800px at 92% 88%, rgba(222,208,176,0.30), transparent 60%),
    #fbfaf7;
}
.tb-layer { position: relative; z-index: 1; }
.tb-main { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* --- Header hover rules, replacing the export's style-hover attributes.
   !important is needed because the header's colours are inline styles. --- */
[data-hover="nav"]:hover {
  background: rgba(20,64,31,0.06) !important;
  color: #14401f !important;
}
[data-hover="book"]:hover {
  background: #0d2c14 !important;
  color: #f6f8f5 !important;
  transform: scale(1.04);
}

/* --- Shared bits --- */
.eyebrow {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #3e7a4e;
}

/* The Book button, as in the header */
.tb-book {
  display: inline-block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #f6f8f5;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  background: #14401f;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(20,64,31,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 200ms cubic-bezier(.22,1,.36,1), background 180ms ease;
}

/* --- Blog home --- */
.blog-hero {
  padding: clamp(56px, 7vw, 96px) 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}
.blog-hero h1 {
  margin: 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.blog-hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #33443a;
  max-width: 580px;
  text-wrap: pretty;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.32);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 34px rgba(18,36,23,0.07);
}
.blog-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-date { margin: 0; font-size: 14px; color: #6b7a6e; }
.blog-card-title {
  margin: 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.blog-card-title a { text-decoration: none; color: #122417; }
.blog-card-title a:hover { color: #14401f; }
.blog-card-desc { margin: 0; font-size: 16px; line-height: 1.55; color: #44544a; flex: 1; }
.blog-card-more {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: #14401f;
}

/* --- Article --- */
.post { max-width: 720px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
.post-head { display: flex; flex-direction: column; gap: 16px; }
.post-title {
  margin: 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.post-meta { margin: 0; font-size: 15px; color: #6b7a6e; }

.post-cover { margin: 36px 0 0; }
.post-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 12px 34px rgba(18,36,23,0.07);
}

.post-body { margin-top: 36px; font-size: 18px; line-height: 1.65; color: #122417; }
.post-body > * { margin: 0 0 1.35em; }
.post-body > *:last-child { margin-bottom: 0; }
.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.1;
  margin-top: 1.9em;
  margin-bottom: 0.6em;
}
.post-body h2 { font-size: clamp(28px, 3.2vw, 36px); }
.post-body h3 { font-size: clamp(22px, 2.4vw, 27px); }
.post-body h4 { font-size: 20px; }
.post-body p { text-wrap: pretty; }
.post-body a { text-decoration: underline; text-underline-offset: 0.14em; }
.post-body strong { font-weight: 600; }
.post-body ul,
.post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.5em; }
.post-body li::marker { color: #3e7a4e; }
.post-body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid #3e7a4e;
  color: #44544a;
  font-size: 19px;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figcaption { margin-top: 10px; font-size: 14px; color: #6b7a6e; }
.post-body hr { border: 0; border-top: 1px solid rgba(20,64,31,0.1); margin: 2.2em 0; }
.post-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
  background: rgba(20,64,31,0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.post-body table { border-collapse: collapse; width: 100%; font-size: 16px; }
.post-body th,
.post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(20,64,31,0.1); }
.post-body th { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600; }

/* Call to action at the end of every article: the glass card from the site */
.post-cta {
  margin-top: 48px;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.32);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 34px rgba(18,36,23,0.07);
}
.post-cta-text { display: flex; flex-direction: column; gap: 8px; flex: 1 1 320px; }
.post-cta-text p { margin: 0; font-size: 17px; line-height: 1.5; color: #44544a; max-width: 460px; }

.post-back { margin: 32px 0 0; font-size: 16px; }
.post-back a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 500;
  text-decoration: none;
}

/* --- Phones: 16px side gutters --- */
@media (max-width: 760px) {
  .tb-main { padding-left: 16px; padding-right: 16px; }
  .post-body { font-size: 17px; }
  .post-cta { padding: 22px 18px; }
  .post-cta .tb-book { width: 100%; text-align: center; box-sizing: border-box; }
  .blog-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
