/* ============================================================
   Q&A Landscaping — Blog & Guides
   Plain, readable, low-motion. For adult / senior homeowners.
   Headings: Pertili 400 (site H1 face). Body: Montserrat.
   Scoped under .blog-journal so nothing leaks globally.
   ============================================================ */

.blog-journal {
  --ink: var(--qa-green, #094c11);
  --paper: var(--cream, #fcfcf4);
  --char: #1c1d16;
  --hair: rgba(9, 76, 17, 0.22);
  --hair-strong: rgba(9, 76, 17, 0.45);
  --muted: rgba(28, 29, 22, 0.62);
  --display: Pertili, "Perpetua", Georgia, serif;

  background: var(--paper);
  color: var(--char);
  font-family: Montserrat, sans-serif;
  font-size: 1.06rem;
  line-height: 1.7;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

.blog-journal * { box-sizing: border-box; }

/* Global stylesheet sets `img { border-radius:10px; margin:20px 0 }`.
   This design uses square 1px hairline borders, so reset images:
   keep the border, drop the radius and stray margins. */
.blog-journal img {
  border-radius: 0;
  margin: 0;
}

.bj-shell {
  width: 90vw;
  max-width: 1100px;
  margin-inline: auto;
}

.blog-journal h1,
.blog-journal h2,
.blog-journal h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--char);
  margin: 0;
}

/* Global stylesheet sets `a { font-weight: 700 }`. Heading text
   wrapped in links must stay 400 to match the (non-link) H1. */
.blog-journal h1 a,
.blog-journal h2 a,
.blog-journal h3 a {
  font-weight: 400;
}

.bj-eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Plain text link used throughout */
.bj-more {
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
a:hover > .bj-more,
.bj-more:hover { color: #062f0a; }

/* Gentle, optional fade-in (opacity only — no movement) */
.blog-journal [data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.blog-journal [data-reveal].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .blog-journal [data-reveal] { opacity: 1; transition: none; }
}

/* ===== Header ============================================== */
.bj-header {
  margin-top: 15vh;
  padding-block: clamp(30px, 5vw, 60px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--hair-strong);
}
.bj-header h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 14px 0 0;
  text-align: left; /* override global `h1 { text-align:center }` */
}
.bj-header-intro {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--char);
  max-width: 56ch;
  margin: 20px 0 0;
}
.bj-press {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 34px;
}
.bj-press-label {
  font-family: Montserrat, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bj-press img {
  height: 26px;
  width: auto;
  opacity: 0.55;
}

/* ===== Featured post ====================================== */
.bj-featured { padding-block: clamp(40px, 6vw, 76px); }
.bj-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.bj-featured-figure {
  border: 1px solid var(--hair-strong);
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.bj-featured-figure img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.bj-featured h2 {
  font-family: var(--display); /* same as the page H1 (Pertili 400) */
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  margin: 14px 0 16px;
}
.bj-featured h2 a { color: inherit; text-decoration: none; }
.bj-featured h2 a:hover { color: var(--ink); }
.bj-featured p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 24px;
  color: var(--char);
}

/* ===== Section heading ==================================== */
.bj-section { padding-block: clamp(34px, 5vw, 60px); }
.bj-section-head {
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 16px;
  margin-bottom: clamp(26px, 3vw, 40px);
}
.bj-section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  margin: 8px 0 0;
}
.bj-section-head p {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 60ch;
}

/* ===== Popular guides (cards, descriptions visible) ======= */
.bj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.bj-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--hair-strong);
  background: #fff;
  padding: clamp(24px, 2.6vw, 34px);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--char);
  transition: border-color 0.3s ease;
}
/* Photo background revealed on hover, with a dark scrim for legibility */
.bj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(7, 30, 10, 0.62), rgba(7, 30, 10, 0.62)),
    var(--card-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bj-card:hover { border-color: var(--ink); }
.bj-card:hover::after { opacity: 1; }

.bj-card-tag {
  font-family: Montserrat, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s ease;
}
.bj-card h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.2;
  transition: color 0.3s ease;
}
.bj-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
  transition: color 0.3s ease;
}
.bj-card .bj-more {
  align-self: flex-start;
  margin-top: 4px;
  transition: color 0.3s ease;
}
/* On hover the photo shows — swap all text to light */
.bj-card:hover .bj-card-tag,
.bj-card:hover h3,
.bj-card:hover p,
.bj-card:hover .bj-more { color: var(--paper); }

/* ===== Single quote (calm, plain) ========================= */
.bj-quote {
  padding-block: clamp(46px, 7vw, 96px);
  border-block: 1px solid var(--hair-strong);
  text-align: center;
}
.bj-quote blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  color: var(--char);
  max-width: 24ch;
  margin: 0 auto;
}
.bj-quote-cite {
  display: inline-block;
  margin-top: 26px;
  font-family: Montserrat, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}
.bj-quote-cite a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

/* ===== Latest posts (grid, descriptions visible) ========= */
.bj-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 44px);
}
.bj-post {
  text-decoration: none;
  color: var(--char);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bj-post-figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--hair-strong);
}
.bj-post-figure img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.bj-post-meta {
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.bj-post h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.22;
}
.bj-post:hover h3 { color: var(--ink); }
.bj-post p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ===== More guides (simple readable list) ================ */
.bj-list { border-top: 1px solid var(--hair); }
.bj-list-item {
  display: block;
  padding: 22px 2px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: var(--char);
}
.bj-list-item:hover { color: var(--ink); }
.bj-list-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.bj-list-item h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.25;
}
.bj-list-date {
  font-family: Montserrat, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.bj-list-desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 78ch;
}

/* ===== Closing CTA ======================================== */
.bj-cta-block {
  text-align: center;
  padding-block: clamp(54px, 8vw, 110px);
}
.bj-cta-block h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  max-width: 20ch;
  margin: 0 auto 30px;
}
.bj-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.bj-cta {
  font-family: Montserrat, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 38px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.bj-cta.is-solid { background: var(--ink); color: var(--paper); }
.bj-cta:hover { background: var(--ink); color: var(--paper); }
.bj-cta.is-solid:hover { background: #062f0a; }

/* ===== Responsive ======================================== */
@media screen and (max-width: 991px) {
  .bj-featured-grid { grid-template-columns: 1fr; }
  .bj-featured-figure { order: -1; }
  .bj-cards { grid-template-columns: 1fr; }
  .bj-posts { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 767px) {
  .blog-journal { font-size: 1.08rem; }
  .bj-header { margin-top: 16vh; }
  .bj-posts { grid-template-columns: 1fr; }
  .bj-list-date { width: 100%; }
}
