/* =========================================================================
   JPS Fencing & Gates — Blog styles
   Layered on top of /styles.css and /colors_and_type.css
   ========================================================================= */

:root{
  --pg-bg: #f4efe4;
  --pg-cream: #faf6ec;
  --pg-paper: #ffffff;
  --pg-green: #4f7a26;
  --pg-green-d: #2d4416;
  --pg-yellow: #f7e23a;
  --pg-yellow-d: #b8a516;
  --pg-ink: #1a1a1a;
  --pg-text: #444;
  --pg-muted: #6b7280;
  --pg-border: #e7dfcb;
}

/* ============ BLOG HEADER ============ */
.blog-hero{
  background:
    linear-gradient(rgba(255,250,235,0.85), rgba(244,239,228,0.9)),
    url('../assets/photos/jp3.jpg');
  background-size: cover;
  background-position: center 70%;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--pg-border);
  text-align: center;
}
.blog-hero h1{
  font-family: "Oswald", sans-serif;
  font-size: 56px; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--pg-ink); margin: 0 0 14px;
  line-height: 1.05;
}
.blog-hero p{
  font-size: 18px; line-height: 1.6;
  max-width: 640px; margin: 0 auto;
  color: #3a3a3a;
}
.blog-hero .eyebrow{ justify-content: center; margin: 0 auto 14px; display: inline-flex }

/* ============ POST GRID (landing) ============ */
.posts{ padding: 72px 0 96px; background: var(--pg-bg) }
.posts__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card{
  background: #fff;
  border: 1px solid var(--pg-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms;
}
.post-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,14,4,0.10) }
.post-card a{ color: inherit; text-decoration: none; display: contents }
.post-card__media{
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  position: relative;
}
.post-card__cat{
  position: absolute; top: 16px; left: 16px;
  background: var(--pg-yellow); color: #111;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 50px;
  box-shadow: 0 4px 0 var(--pg-yellow-d);
}
.post-card__body{
  padding: 24px 26px 28px;
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.post-card__meta{
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pg-muted); font-weight: 600;
  display: flex; gap: 14px; align-items: center;
}
.post-card__meta .dot{
  width: 4px; height: 4px; border-radius: 50%; background: var(--pg-muted);
}
.post-card h3{
  font-family: "Oswald", sans-serif;
  font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--pg-ink); margin: 0; line-height: 1.15;
}
.post-card p{
  font-size: 15px; line-height: 1.55; color: var(--pg-text); margin: 0;
}
.post-card__more{
  margin-top: auto;
  font-family: "Oswald", sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pg-green);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============ ARTICLE (post page) ============ */
.article{ padding: 56px 0 96px; background: var(--pg-bg) }
.article__inner{ max-width: 760px; margin: 0 auto; padding: 0 28px }

.breadcrumb{
  font-size: 13px; color: var(--pg-muted); margin-bottom: 18px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a{ color: var(--pg-green); font-weight: 600 }
.breadcrumb a:hover{ color: var(--pg-green-d); text-decoration: underline }
.breadcrumb span{ color: var(--pg-muted) }

.article__head{ margin-bottom: 28px }
.article__head h1{
  font-family: "Oswald", sans-serif;
  font-size: 46px; font-weight: 700; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--pg-ink); margin: 0 0 16px;
  text-wrap: balance;
}
.article__lead{
  font-size: 19px; line-height: 1.55; color: #3a3a3a; margin: 0 0 18px;
  text-wrap: pretty;
}
.article__meta{
  display: flex; gap: 14px; align-items: center;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pg-muted); font-weight: 600;
}
.article__meta .dot{
  width: 4px; height: 4px; border-radius: 50%; background: var(--pg-muted);
}
.article__cat{
  background: var(--pg-yellow); color: #111;
  padding: 5px 11px; border-radius: 50px;
  letter-spacing: 0.1em;
  box-shadow: 0 3px 0 var(--pg-yellow-d);
}

.article__hero{
  width: 100%; aspect-ratio: 16/9;
  border-radius: 20px;
  background-size: cover; background-position: center;
  margin: 0 0 36px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.article__body{ font-size: 17px; line-height: 1.75; color: #2c2c2c }
.article__body p{ margin: 0 0 22px }
.article__body h2{
  font-family: "Oswald", sans-serif;
  font-size: 28px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--pg-ink); margin: 38px 0 14px;
  line-height: 1.15;
}
.article__body h3{
  font-family: "Oswald", sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--pg-ink); margin: 28px 0 10px;
}
.article__body ul, .article__body ol{
  margin: 0 0 22px; padding: 0 0 0 22px;
}
.article__body li{ margin-bottom: 8px }
.article__body strong{ color: var(--pg-ink) }
.article__body a{
  color: var(--pg-green); font-weight: 600; text-underline-offset: 3px;
  text-decoration: underline; text-decoration-thickness: 1.5px;
}
.article__body a:hover{ color: var(--pg-green-d) }
.article__body blockquote{
  margin: 24px 0; padding: 18px 24px;
  border-left: 3px solid var(--pg-green);
  background: var(--pg-cream);
  border-radius: 0 12px 12px 0;
  font-size: 18px; line-height: 1.55; color: #2c2c2c;
}
.article__body blockquote p:last-child{ margin: 0 }

.callout{
  background: #fff;
  border: 1px solid var(--pg-border);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 28px 0;
  display: flex; gap: 18px; align-items: flex-start;
}
.callout__ico{
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pg-yellow); color: #111;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 3px 0 var(--pg-yellow-d);
}
.callout__ico svg{ width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round }
.callout p{ margin: 0; font-size: 16px; line-height: 1.55 }
.callout strong{ display: block; margin-bottom: 4px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.04em }

/* ============ POST FOOTER CTA ============ */
.post-cta{
  margin-top: 48px;
  background: linear-gradient(135deg, #4f7a26, #2d4416);
  color: #fff; border-radius: 20px;
  padding: 36px 32px; text-align: center;
  box-shadow: 0 20px 40px rgba(45,68,22,0.25);
}
.post-cta h3{
  color: #fff;
  font-family: "Oswald", sans-serif; font-size: 26px;
  text-transform: uppercase; letter-spacing: 0; margin: 0 0 8px;
}
.post-cta p{ color: rgba(255,255,255,0.86); margin: 0 0 18px; font-size: 15px }
.post-cta .btn{ box-shadow: 0 5px 0 var(--pg-yellow-d) }

/* ============ RELATED POSTS ============ */
.related{
  margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--pg-border);
}
.related h2{
  font-family: "Oswald", sans-serif;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em;
  margin: 0 0 22px; color: var(--pg-ink);
}
.related__grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.related .post-card{ box-shadow: none; border-radius: 16px }
.related .post-card__media{ aspect-ratio: 16/8 }
.related .post-card__body{ padding: 18px 20px }
.related h3{ font-size: 17px }

/* ============ Responsive ============ */
@media (max-width: 1024px){
  .posts__grid{ grid-template-columns: 1fr 1fr }
  .blog-hero h1{ font-size: 40px }
  .article__head h1{ font-size: 36px }
}
@media (max-width: 600px){
  .posts__grid{ grid-template-columns: 1fr }
  .related__grid{ grid-template-columns: 1fr }
  .blog-hero{ padding: 56px 0 44px }
  .blog-hero h1{ font-size: 32px }
  .article__head h1{ font-size: 30px }
  .article__hero{ border-radius: 14px; aspect-ratio: 4/3 }
  .article__body{ font-size: 16px }
  .article__body h2{ font-size: 24px }
}
