/*
 * blog.css
 * Article and blog index styles for /blog/. Loads after pages-global.css
 * and reuses its --pg-* color tokens. All selectors are scoped with .nmb-
 */

.nmb-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.nmb-wrap-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.nmb-crumbs {
  font-size: 0.88rem;
  color: var(--pg-text-light);
  padding: 22px 0 6px;
}
.nmb-crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nmb-crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: #cbd5e0;
}
.nmb-crumbs a {
  color: var(--pg-primary);
  text-decoration: none;
}
.nmb-crumbs a:hover,
.nmb-crumbs a:focus-visible {
  text-decoration: underline;
}

/* ─── Article header ─────────────────────────────────────────── */
.nmb-header {
  padding: 8px 0 18px;
}
.nmb-kicker {
  display: inline-block;
  background: rgba(210, 143, 178, 0.16);
  color: #8f3f63;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.nmb-header h1 {
  color: var(--pg-dark);
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.18;
  font-weight: 800;
  margin: 0 0 14px;
}
.nmb-meta {
  font-size: 0.92rem;
  color: var(--pg-text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.nmb-meta i {
  color: var(--pg-secondary);
  margin-right: 5px;
}

.nmb-hero {
  margin: 8px 0 28px;
  border-radius: var(--pg-radius);
  overflow: hidden;
  box-shadow: var(--pg-shadow);
  aspect-ratio: 16 / 9;
  background: var(--pg-bg-soft);
}
.nmb-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Body copy ──────────────────────────────────────────────── */
.nmb-article {
  font-size: 1.075rem;
  line-height: 1.75;
  color: #2d3748;
}
.nmb-article h2 {
  color: var(--pg-primary);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 2.4rem 0 0.9rem;
  scroll-margin-top: 110px;
}
.nmb-article h3 {
  color: var(--pg-dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.6rem 0 0.6rem;
}
.nmb-article p {
  margin: 0 0 1.1rem;
}
.nmb-article ul,
.nmb-article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}
.nmb-article li {
  margin-bottom: 0.45rem;
}
.nmb-article a {
  color: var(--pg-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(210, 143, 178, 0.7);
  text-underline-offset: 3px;
}
.nmb-article a:hover {
  text-decoration-color: var(--pg-primary);
}
.nmb-article a:focus-visible,
.nmb-btn:focus-visible,
.nmb-faq summary:focus-visible,
.nmb-card a:focus-visible {
  outline: 3px solid var(--pg-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Quick answer box: written to be quoted by search and AI answers */
.nmb-answer {
  background: var(--pg-bg-soft);
  border: 1px solid #e2eef2;
  border-left: 5px solid var(--pg-primary);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.nmb-answer strong.nmb-answer-label {
  display: block;
  color: var(--pg-primary);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.nmb-answer p:last-child {
  margin-bottom: 0;
}

/* Table of contents */
.nmb-toc {
  border: 1px solid #e9eef1;
  border-radius: 12px;
  padding: 16px 22px;
  margin: 0 0 8px;
  font-size: 0.98rem;
}
.nmb-toc strong {
  color: var(--pg-dark);
  display: block;
  margin-bottom: 6px;
}
.nmb-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}
.nmb-toc li {
  margin-bottom: 0.25rem;
}

/* Tables */
.nmb-table-scroll {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.nmb-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 460px;
}
.nmb-article th,
.nmb-article td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}
.nmb-article thead th {
  background: var(--pg-primary);
  color: #fff;
  font-weight: 700;
}
.nmb-article tbody tr:nth-child(even) {
  background: #f9fbfc;
}
.nmb-note {
  font-size: 0.9rem;
  color: var(--pg-text-light);
}

/* Service-area city links */
.nmb-cities {
  border: 1px solid #e9eef1;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0 0;
}
.nmb-article .nmb-cities h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.nmb-cities-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px 24px;
}
.nmb-cities strong {
  display: block;
  color: var(--pg-dark);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.nmb-article .nmb-cities ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.nmb-cities-cols > div:first-child ul {
  columns: 2;
  column-gap: 20px;
}
.nmb-article .nmb-cities li {
  margin-bottom: 0.2rem;
  break-inside: avoid;
}
@media (max-width: 640px) {
  .nmb-cities-cols {
    grid-template-columns: 1fr;
  }
}

/* Checklists */
.nmb-check {
  list-style: none;
  padding-left: 0 !important;
}
.nmb-check li {
  position: relative;
  padding-left: 1.8rem;
}
.nmb-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--pg-secondary);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  font-size: 0.75rem;
  line-height: 1.2rem;
  text-align: center;
  margin-top: 0.3rem;
}

/* Inline call to action */
.nmb-cta {
  background: linear-gradient(135deg, var(--pg-primary), #16687f);
  color: #fff;
  border-radius: var(--pg-radius);
  padding: 26px 26px 24px;
  margin: 2.2rem 0;
}
.nmb-cta h2,
.nmb-cta p.nmb-cta-title {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}
.nmb-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}
.nmb-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nmb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nmb-btn-primary {
  background: #fff;
  color: var(--pg-primary) !important;
}
.nmb-btn-primary:hover {
  background: #f0f7fa;
}
.nmb-btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff !important;
}
.nmb-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ─── FAQ (People Also Ask) ──────────────────────────────────── */
.nmb-faq {
  margin: 0 0 1.5rem;
}
.nmb-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.nmb-faq details[open] {
  border-color: rgba(15, 76, 95, 0.35);
  box-shadow: 0 4px 16px rgba(15, 76, 95, 0.07);
}
.nmb-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 48px 15px 18px;
  position: relative;
}
.nmb-faq summary::-webkit-details-marker {
  display: none;
}
.nmb-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pg-secondary);
}
.nmb-faq details[open] summary::after {
  content: "\2212";
}
.nmb-faq summary h3 {
  display: inline;
  font-size: 1.05rem;
  margin: 0;
  color: var(--pg-dark);
}
.nmb-faq .nmb-faq-a {
  padding: 0 18px 14px;
}
.nmb-faq .nmb-faq-a p:last-child {
  margin-bottom: 0;
}

/* ─── Sources + related ──────────────────────────────────────── */
.nmb-sources {
  font-size: 0.9rem;
  color: var(--pg-text-light);
  border-top: 1px solid #edf2f7;
  padding-top: 14px;
  margin-top: 2rem;
}
.nmb-sources ul {
  padding-left: 1.1rem;
}

.nmb-related {
  background: var(--pg-bg-soft);
  padding: 46px 0 56px;
  margin-top: 48px;
}
.nmb-related h2 {
  color: var(--pg-primary);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 22px;
}

/* Cards (related posts + blog index) */
.nmb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.nmb-card {
  background: #fff;
  border-radius: var(--pg-radius);
  overflow: hidden;
  box-shadow: var(--pg-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nmb-card:hover {
  box-shadow: var(--pg-shadow-hover);
  transform: translateY(-2px);
}
.nmb-card-img {
  aspect-ratio: 16 / 9;
  background: #eef4f6;
}
.nmb-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nmb-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nmb-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8f3f63;
  margin-bottom: 6px;
}
.nmb-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 700;
}
.nmb-card h3 a {
  color: var(--pg-dark);
  text-decoration: none;
}
.nmb-card h3 a::after {
  /* make the whole card clickable without nesting links */
  content: "";
  position: absolute;
  inset: 0;
}
.nmb-card {
  position: relative;
}
.nmb-card p {
  font-size: 0.95rem;
  color: var(--pg-text);
  margin: 0;
  line-height: 1.55;
}

/* Blog index hero */
.nmb-index-hero {
  background: linear-gradient(135deg, var(--pg-primary), #16687f);
  color: #fff;
  padding: 54px 0 46px;
  text-align: center;
}
.nmb-index-hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin: 0 0 10px;
}
.nmb-index-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}
.nmb-index-list {
  padding: 46px 0 60px;
}

@media (max-width: 575px) {
  .nmb-article {
    font-size: 1.02rem;
  }
  .nmb-cta {
    padding: 22px 18px;
  }
  .nmb-btn {
    width: 100%;
    justify-content: center;
  }
  .nmb-answer {
    padding: 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nmb-card,
  .nmb-btn {
    transition: none;
  }
  .nmb-card:hover {
    transform: none;
  }
}
