/* =========================================================
   Essential Pest Control - Blog Post (article) template
   Extends style.css + pest-page.css + blog-page.css.
   Include AFTER all three, on individual /blog/*.html pages.
========================================================= */

/* =============== ARTICLE HERO =============== */
.post-hero {
  width: min(calc(100% - 64px), 1500px);
  height: 500px;
  margin: 20px auto 0;
  background: var(--forest);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 61, 73, .12);
}

.post-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
}

.post-hero-copy {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 28px clamp(38px, 4vw, 60px);
}

.post-hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: 100%;
  margin: 0;
  min-height: 0;
  border-left: 4px solid var(--amber);
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.post-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.post-hero .breadcrumb {
  color: rgba(255, 255, 255, .75);
}

.post-hero .breadcrumb a {
  color: rgba(255, 255, 255, .85);
}

.post-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--amber);
  margin: 8px 0 12px;
}

.post-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 2.65vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 14px;
}

.post-hero-sub {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  margin: 0 0 14px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: rgba(255, 255, 255, .7);
  font-size: .86rem;
}

.page-hero .post-meta {
  margin: 16px 0 0;
}

.post-hero-actions {
  display: flex;
  margin-top: 20px;
}

.post-hero-actions .btn {
  width: auto;
}

/* =============== ARTICLE BODY =============== */
.post-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 32px;
}

.post-reading-column {
  max-width: 820px;
  margin: 0 auto;
}

.post-intro {
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.65;
}

.post-body h2 {
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  margin: 48px 0 16px;
  padding-top: 4px;
}

.post-body h3 {
  font-size: 1.14rem;
  margin: 28px 0 10px;
}

.post-body p {
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 16px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  line-height: 1.7;
  color: var(--ink);
}

.post-body li {
  margin-bottom: 6px;
}

.post-body strong {
  color: var(--forest);
}

/* =============== INFORMATION / COMPLIANCE NOTE =============== */
.compliance-note {
  margin: 24px 0 28px;
  padding: 20px 24px 8px;
  background: var(--cream-dim);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber-deep);
  border-radius: var(--radius);
}

.compliance-note p.compliance-note-title {
  margin: 0 0 10px;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.compliance-note a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============== TABLE OF CONTENTS =============== */
.post-toc {
  background: var(--cream-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0 40px;
}

.post-toc p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 10px;
}

.post-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}

.post-toc li {
  break-inside: avoid;
  font-size: .92rem;
}

.post-toc a {
  color: var(--ink);
}

.post-toc a:hover {
  color: var(--forest);
}

/* =============== SEASON CARD =============== */
.season-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0 40px;
}

.season-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--forest);
}

.season-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.season-card-months {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
}

.season-card-body {
  padding: 26px 30px 10px;
}

.season-watch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.season-watch span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  color: var(--amber-deep);
  background: rgba(230, 149, 47, .12);
  padding: 5px 12px;
  border-radius: 999px;
}

/* =============== CHECKLIST =============== */
.checklist {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 18px 22px 6px;
  margin: 0 0 8px;
}

.checklist p.checklist-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 12px;
}

.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: .95rem;
  color: var(--ink);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--amber-deep);
  border-radius: 5px;
}

/* =============== TOWN CHIPS =============== */
.town-note {
  background: var(--cream-dim);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 8px;
}

.town-note p.town-note-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.town-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.town-chips span {
  font-size: .82rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}

/* =============== INLINE CTA =============== */
.post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--cream-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 40px 0;
}

.post-cta p {
  margin: 0;
  font-size: .98rem;
  color: var(--ink);
}

.post-cta p strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest);
  margin-bottom: 2px;
}

.post-cta .btn {
  flex-shrink: 0;
}

/* =============== YEAR-ROUND TABLE =============== */
.year-round-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 32px;
  font-size: .9rem;
}

.year-round-table th,
.year-round-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.year-round-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============== FAQ =============== */
.post-faq {
  margin: 8px 0 8px;
}

.post-faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.post-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.post-faq summary::-webkit-details-marker {
  display: none;
}

.post-faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--amber-deep);
  flex-shrink: 0;
  transition: transform .2s ease;
}

.post-faq details[open] summary::after {
  transform: rotate(45deg);
}

.post-faq details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}

/* =============== AUTHOR / SHARE FOOTER =============== */
.post-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  color: var(--muted);
  font-size: .88rem;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 760px) {
  .compliance-note {
    padding: 18px 18px 6px;
  }

  .post-hero {
    width: calc(100% - 32px);
    height: auto;
    margin-top: 16px;
    padding: 0;
    border-radius: 18px;
  }

  .post-hero-inner {
    display: block;
    height: auto;
  }

  .post-hero-copy {
    position: relative;
    inset: auto;
    width: auto;
    padding: 22px 20px 24px;
  }

  .post-hero h1 {
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .post-hero-sub {
    font-size: .92rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .post-tag {
    margin: 5px 0 10px;
  }

  .post-hero-actions {
    margin-top: 14px;
  }

  .post-hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-top: 4px solid var(--amber);
    border-left: 0;
  }

  .post-wrap {
    width: auto;
    padding: 40px 18px 12px;
  }

  .post-toc ol {
    columns: 1;
  }

  .season-card-head {
    padding: 16px 18px;
  }

  .season-card-body {
    padding: 18px 18px 4px;
  }

  .post-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .post-hero {
    width: min(calc(100% - 36px), 1500px);
    height: 480px;
  }

  .post-hero-inner {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  }

  .post-hero-copy {
    width: auto;
    padding: 26px 34px;
  }

  .post-hero-media {
    width: auto;
  }
}

@media (max-width: 520px) {
  .post-hero {
    padding: 0;
  }

  .post-hero h1 {
    font-size: 1.75rem;
  }

  .post-hero-media {
    aspect-ratio: 4 / 3;
  }

  .season-card-body {
    padding: 18px 18px 4px;
  }

  .year-round-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Keep the article hero identical to the pest-page split on desktop. */
@media (min-width: 981px) {
  .post-hero {
    width: min(calc(100% - 64px), 1500px);
    height: 500px;
  }

  .post-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    width: 100%;
    height: 100%;
  }

  .post-hero-copy {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: 100%;
    padding: 28px clamp(38px, 4vw, 60px);
    justify-content: flex-start;
  }

  .post-hero-media {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-top: 0;
    border-left: 4px solid var(--amber);
  }
}
