/* ============================================================
   AM Pest Control Baltimore — Blog stylesheet
   Requires /styles/site.css to be loaded first.
   Shared across blog/index.html and individual posts.
   ============================================================ */

/* Blog uses a taller line-height than the site default for long-form reading. */
body { line-height: 1.65; }

.container { width: min(1100px, 92%); margin-inline: auto; }
.container-narrow { width: min(760px, 92%); margin-inline: auto; }

/* ---------- HEADER ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(12,4,5,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,45,58,0.35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .am {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 22px;
  color: var(--gold); letter-spacing: 0.04em;
}
.brand-text .sub {
  font-family: 'Oswald', sans-serif;
  font-weight: 500; font-size: 11px;
  color: #f5e7e7; letter-spacing: 0.28em;
  margin-top: 3px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: #ecd8d8;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.hamburger {
  display: none;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--ink); font-size: 22px; padding: 6px 12px; border-radius: 8px;
}

/* ---------- HERO / POST HEADER ---------- */
.post-hero {
  padding: 140px 0 60px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,45,58,0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.post-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.post-breadcrumbs a { color: var(--muted-2); }
.post-breadcrumbs a:hover { color: var(--ink); }
.post-breadcrumbs .sep { color: var(--line-2); margin: 0 8px; }
.post-eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 20px;
}
.post-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.post-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- ARTICLE BODY ---------- */
.post-body {
  padding: 60px 0 100px;
  font-size: 17.5px;
}
.post-body p {
  color: #ede0e0;
  margin-bottom: 22px;
}
.post-body p.lede {
  font-size: 21px;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 36px;
}
.post-body h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: 0.005em;
  margin: 50px 0 18px;
  color: #fff;
  text-wrap: balance;
}
/* .accent on h2 inherits the white base from /styles/site.css */
.post-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin: 32px 0 14px;
  color: var(--ink);
}
.post-body ul, .post-body ol {
  margin: 0 0 24px 22px;
  color: #ede0e0;
}
.post-body li { margin-bottom: 10px; }
.post-body li strong { color: var(--ink); font-weight: 700; }
.post-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s;
}
.post-body a:hover { border-color: var(--ink); }
.post-body strong { color: #fff; font-weight: 700; }
.post-body blockquote {
  border-left: 3px solid var(--line-2);
  background: var(--card);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 18px;
  line-height: 1.55;
  color: #fff;
  font-style: italic;
}

/* ---------- CALLOUT / WARNING BOX ---------- */
.callout {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
}
.callout.warn {
  border-color: rgba(196,30,30,0.55);
  background: linear-gradient(180deg, rgba(196,30,30,0.12), var(--card));
}
.callout-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.callout.warn .callout-label { color: var(--red-glow); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- INLINE CTA ---------- */
.inline-cta {
  background: linear-gradient(135deg, rgba(196,30,30,0.18), rgba(140,16,16,0.08));
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 32px;
  margin: 44px 0;
  text-align: center;
}
.inline-cta h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.inline-cta p { color: var(--muted-2); margin-bottom: 22px; }
.inline-cta-buttons {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
/* Buttons live in /styles/site.css — exactly two CTA classes (.btn-primary, .btn-secondary). */

/* ---------- FAQ ---------- */
.faq { margin: 40px 0; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 14px;
}
.faq-q {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.faq-a { color: #ede0e0; }

/* ---------- POST FOOTER / AUTHOR ---------- */
.author-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 50px 0 0;
}
.author-card img {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,45,58,0.3));
}
.author-meta .name {
  font-family: 'Oswald', sans-serif;
  font-size: 18px; font-weight: 600;
  color: #fff;
}
.author-meta .role {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- BLOG INDEX (LISTING) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin: 50px 0;
}
.blog-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 12px 36px rgba(196,30,30,0.18);
}
.blog-card-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-self: flex-start;
}
.blog-card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: #fff;
}
.blog-card-excerpt {
  color: var(--muted-2);
  font-size: 15px;
  flex: 1;
}
.blog-card-meta {
  display: flex; gap: 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.blog-card-arrow {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 14px;
}
footer h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 16px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
footer ul a, footer ul li {
  font-size: 14px;
  color: #d6b8b8;
}
footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 13px;
  color: #a07878;
}
.footer-bottom a { color: #a07878; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 600px) {
  .post-hero { padding: 120px 0 44px; }
  .post-body { padding: 44px 0 70px; }
  .post-body { font-size: 17px; }
  .post-body p.lede { font-size: 19px; }
  .inline-cta { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
