/* =============================================
   BESTCLEAN24 — ARTICLE LAYOUT
   Article header, meta bar, content area,
   categories/tags, related posts.
   Reusable across blog posts, services,
   city pages, taxonomy archives.
   ============================================= */


/* =============================================================
   PAGE BACKGROUND — force white on single posts
   ============================================================= */
body.single-post,
body.single-post .site-content,
body.single-post #content,
body.single-post #primary {
  background: var(--bc-white);
}


/* =============================================================
   ARTICLE HEADER — with optional background image
   ============================================================= */
.bc-article-header {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Solid blue fallback (no image) */
.bc-article-header--solid {
  background: var(--bc-blue);
}

/* Background image layer */
.bc-article-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bc-article-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.05);
}

/* Gradient overlay on image */
.bc-article-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 49, 244, 0.75) 0%,
    rgba(0, 49, 244, 0.88) 60%,
    rgba(0, 49, 244, 0.95) 100%
  );
}

/* Content layer */
.bc-article-header-content {
  position: relative;
  z-index: 1;
  max-width: var(--bc-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2.5rem 0;
  color: var(--bc-white);
}

/* Breadcrumbs */
.bc-breadcrumb {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.bc-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.bc-breadcrumb a:hover {
  color: var(--bc-white);
}

/* Category badge */
.bc-article-category {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.15);
  color: var(--bc-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.bc-article-category:hover {
  color: var(--bc-white);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.bc-article-category a {
  color: inherit;
  text-decoration: none;
}

/* Title */
.bc-article-title {
  font-family: var(--bc-font);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bc-white);
  max-width: 600px;
  margin: 0;
}


/* =============================================================
   META BAR
   ============================================================= */
.bc-meta-bar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: var(--bc-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.bc-meta-item {
  flex: 1;
  padding: 1.15rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bc-meta-item:first-child {
  padding-left: 0;
}

.bc-meta-item:last-child {
  border-right: none;
}

.bc-meta-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}

.bc-meta-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bc-white);
}


/* =============================================================
   CONTENT AREA — typography base
   ============================================================= */
.bc-content {
  max-width: var(--bc-max-content);
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.bc-content p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--bc-gray);
  margin-bottom: 1.25rem;
}

.bc-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bc-black);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.bc-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bc-black);
  margin: 2rem 0 0.75rem;
}

.bc-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bc-black);
  margin: 1.5rem 0 0.5rem;
}

.bc-content a {
  color: var(--bc-blue);
  text-decoration: underline;
  text-decoration-color: var(--bc-blue-20);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.bc-content a:hover {
  text-decoration-color: var(--bc-blue);
}

/* Block buttons inside content — override generic link color only for buttons with dark/blue bg */
.bc-content .bc-service-card-btn,
.bc-content .bc-phone-box-number a,
.bc-content .bc-calc-cta,
.bc-content .bc-steps-cta,
.bc-content .bc-tag--cat {
  color: var(--bc-white);
  text-decoration: none;
}

.bc-content .bc-service-card-btn:hover,
.bc-content .bc-phone-box-number a:hover,
.bc-content .bc-calc-cta:hover,
.bc-content .bc-steps-cta:hover,
.bc-content .bc-tag--cat:hover {
  color: var(--bc-white);
  text-decoration: none;
}

/* White-bg buttons on blue bg — keep blue text, no underline */
.bc-content .bc-phone-box-cta,
.bc-content .bc-cta-btn {
  color: var(--bc-blue);
  text-decoration: none;
}

.bc-content .bc-phone-box-cta:hover,
.bc-content .bc-cta-btn:hover {
  color: var(--bc-blue);
  text-decoration: none;
}

/* Outlined buttons on light bg — keep blue text, no underline */
.bc-content .bc-pricing-btn,
.bc-content .bc-case-tag {
  text-decoration: none;
}

.bc-content .bc-pricing-btn:hover {
  color: var(--bc-white);
  text-decoration: none;
}

.bc-content ul,
.bc-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.bc-content li {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--bc-gray);
  margin-bottom: 0.25rem;
}

.bc-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bc-radius-sm);
  margin: 1rem 0;
}

.bc-content strong {
  font-weight: 700;
  color: var(--bc-black);
}


/* =============================================================
   CATEGORIES + TAGS
   ============================================================= */
.bc-tags {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bc-border);
}

.bc-tags-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.bc-tags-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bc-gray-mid);
  flex-shrink: 0;
  min-width: 70px;
}

.bc-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bc-tag {
  display: inline-block;
  font-family: var(--bc-font);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.bc-tag--cat {
  background: var(--bc-blue);
  color: var(--bc-white);
}

.bc-tag--cat:hover {
  background: var(--bc-blue-hover);
  color: var(--bc-white);
}

.bc-tag--tag {
  background: var(--bc-gray-bg);
  color: var(--bc-gray);
  border: 1px solid var(--bc-border);
}

.bc-tag--tag:hover {
  border-color: var(--bc-blue);
  color: var(--bc-blue);
  background: var(--bc-blue-10);
}


/* =============================================================
   RELATED POSTS — full width section
   ============================================================= */
.bc-related {
  background: var(--bc-white);
  padding: 3rem 2rem;
}

.bc-related-inner {
  max-width: var(--bc-max-content);
  margin: 0 auto;
}

.bc-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.bc-related-title {
  font-family: var(--bc-font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bc-black);
}

.bc-related-link {
  font-family: var(--bc-font);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bc-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.bc-related-link:hover {
  gap: 0.5rem;
}

.bc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Related card */
.bc-related-card {
  background: var(--bc-white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bc-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Image area */
.bc-related-card-img {
  position: relative;
  overflow: hidden;
}

.bc-related-card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.bc-related-card-img--placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #3a3a3a 0%, #555 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Date badge */
.bc-related-card-date {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 52px;
  height: 52px;
  background: var(--bc-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.bc-related-card-day {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bc-blue);
}

.bc-related-card-month {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--bc-gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Body */
.bc-related-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bc-related-card-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bc-gray-mid);
  margin-bottom: 0.5rem;
}

.bc-related-card-author svg {
  width: 14px;
  height: 14px;
  color: var(--bc-blue);
  flex-shrink: 0;
}

.bc-related-card-title {
  font-family: var(--bc-font);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bc-black);
  line-height: 1.3;
  margin-bottom: 0.65rem;
  flex: 1;
}

.bc-related-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bc-related-card-read {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bc-blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bc-related-card-read svg {
  width: 14px;
  height: 14px;
  fill: var(--bc-blue);
  transition: transform 0.2s;
}

.bc-related-card:hover .bc-related-card-read svg {
  transform: translateX(3px);
}

.bc-related-card-time {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--bc-gray-mid);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .bc-article-header-content {
    padding: 2.5rem 1.25rem 0;
  }

  .bc-article-title {
    font-size: 1.6rem;
  }

  .bc-meta-bar {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .bc-meta-item {
    padding: 0.85rem 1rem;
  }

  .bc-meta-item:first-child {
    padding-left: 0;
  }

  .bc-meta-value {
    font-size: 0.8rem;
  }

  .bc-content {
    padding: 2rem 1.25rem 2.5rem;
  }

  .bc-related {
    padding: 2rem 1.25rem;
  }

  .bc-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .bc-article-header {
    min-height: 280px;
  }

  .bc-article-header-content {
    padding: 2rem 1.25rem 0;
  }

  .bc-article-title {
    font-size: 1.35rem;
  }

  .bc-meta-bar {
    flex-direction: column;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .bc-meta-item {
    flex: none;
    width: 100%;
    padding: 0.75rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .bc-meta-item:first-child {
    padding-left: 0;
  }

  .bc-meta-item:last-child {
    border-bottom: none;
  }

  .bc-content {
    padding: 1.5rem 1.25rem 2rem;
  }

  .bc-content h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
  }
}
