/* ==========================================================================
   SEIB CONSTRUCTION — SINGLE BLOG POST PAGE
   Styles unique to blog-post.html only.
   Loads after blog.css (which provides sidebar widget + scroll-reveal styles).
   Shared tokens → global.css | Shared components → components.css
   RULE: Never hardcode brand colors — always use CSS custom properties.
   ========================================================================== */


/* --------------------------------------------------------------------------
   §01 POST HERO
   -------------------------------------------------------------------------- */
.post-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, var(--copper-dim), transparent 60%);
  pointer-events: none;
}

.post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding-block: clamp(48px, 7vw, 80px);
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.post-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-base);
}

.post-breadcrumb a:hover {
  color: var(--copper-light);
}

.post-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.22);
  font-size: 9px;
}

.post-breadcrumb-current {
  color: rgba(255, 255, 255, 0.30);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Category tag */
.post-cat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--copper);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
}

/* Hero headline */
.post-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

/* Meta row */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  row-gap: var(--space-3);
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-meta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
}

.post-meta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-meta-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-meta-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.post-meta-author-role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
  line-height: 1;
}

.post-meta-divider {
  width: 1px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.48);
}

.post-meta-item i {
  font-size: 11px;
  color: var(--copper-light);
}


/* --------------------------------------------------------------------------
   §02 FEATURED IMAGE
   -------------------------------------------------------------------------- */
.post-featured-img-wrap {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
}

.post-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-img-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-align: center;
  padding: 10px var(--space-4);
  background-color: var(--off-white);
  border-bottom: 1px solid var(--cream);
}


/* --------------------------------------------------------------------------
   §03 POST LAYOUT — ARTICLE + SIDEBAR
   -------------------------------------------------------------------------- */
.post-layout-section {
  background-color: var(--warm-white);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(40px, 5vw, 64px);
  /* stretch (not start) so the sidebar column fills the full row height,
     giving its sticky inner wrapper room to travel without overflowing the footer */
  align-items: stretch;
  padding-block: clamp(48px, 6vw, 72px);
}


/* --------------------------------------------------------------------------
   §04 ARTICLE CONTENT TYPOGRAPHY
   -------------------------------------------------------------------------- */
.post-article {
  min-width: 0;
}

/* Lead paragraph */
.post-article-intro {
  font-size: clamp(15px, 1.25vw, 17px);
  color: var(--charcoal);
  line-height: 1.85;
  margin-bottom: var(--space-7);
  border-left: 3px solid var(--copper);
  padding-left: var(--space-5);
}

.post-article h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: clamp(36px, 5vw, 52px);
  margin-bottom: var(--space-5);
}

.post-article h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}

.post-article p {
  font-size: var(--fs-body);
  color: var(--charcoal);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}

.post-article ul,
.post-article ol {
  margin-bottom: var(--space-5);
  /*padding-left: var(--space-6);*/
  list-style-type: disc;
}

.post-article ul li,
.post-article ol li {
  font-size: var(--fs-body);
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.post-article ul li::marker {
  color: var(--copper);
}

.post-article ol li::marker {
  color: var(--copper);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Pull quote */
.post-article blockquote {
  margin: clamp(32px, 5vw, 48px) 0;
  padding: var(--space-6) var(--space-7);
  background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
  border-left: 4px solid var(--copper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
  overflow: hidden;
}

.post-article blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--copper);
  opacity: 0.12;
  position: absolute;
  top: -12px;
  left: 12px;
  line-height: 1;
  pointer-events: none;
}

.post-article blockquote p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: var(--space-3);
  position: relative;
}

.post-article blockquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  font-style: normal;
  position: relative;
}


/* --------------------------------------------------------------------------
   PROJECT SUMMARY BOX
   -------------------------------------------------------------------------- */
.post-summary-box {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-top: 3px solid var(--copper);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-6) var(--space-7);
  box-shadow: var(--shadow-sm);
  margin: clamp(32px, 5vw, 48px) 0;
}

.post-summary-box-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--cream);
}

.post-summary-box-title i {
  font-size: 13px;
}

.post-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4) var(--space-5);
}

.post-summary-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-summary-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.post-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}


/* --------------------------------------------------------------------------
   BEFORE / AFTER IMAGE GRID
   -------------------------------------------------------------------------- */
.post-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: clamp(28px, 4vw, 40px) 0;
}

.post-ba-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.post-ba-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-ba-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

.post-ba-label--after {
  background: linear-gradient(to top, rgba(184, 115, 51, 0.72), transparent);
}


/* --------------------------------------------------------------------------
   TAG STRIP
   -------------------------------------------------------------------------- */
.post-tag-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: var(--space-6);
  border-top: 1px solid var(--cream);
}

.post-tag-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: var(--space-1);
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--navy);
  background-color: var(--off-white);
  border: 1px solid var(--cream);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  cursor: pointer;
}

.post-tag:hover {
  background-color: var(--copper-dim);
  border-color: rgba(184, 115, 51, 0.30);
  color: var(--copper);
}


/* --------------------------------------------------------------------------
   AUTHOR BIO
   -------------------------------------------------------------------------- */
.post-author-bio {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-8);
}

.post-author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--copper-dim);
  flex-shrink: 0;
}

.post-author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-author-bio-content {
  flex: 1;
  min-width: 0;
}

.post-author-bio-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 4px;
}

.post-author-bio-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.post-author-bio-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}


/* --------------------------------------------------------------------------
   §05 RELATED POSTS
   -------------------------------------------------------------------------- */
.post-related {
  background-color: var(--off-white);
  border-top: 1px solid var(--cream);
}

.post-related-inner {
  padding-block: clamp(48px, 7vw, 72px);
}

.post-related-header {
  margin-bottom: var(--space-8);
}

.post-related-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-3);
}

.post-related-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  line-height: 1.2;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* .blog-card styles come from blog.css — related posts reuse them */


/* ==========================================================================
   SIDEBAR — elevated, self-contained design for the single-post page.
   (blog.css is NOT loaded on single posts, so every sidebar style lives here.)
   ========================================================================== */
/* Grid item — stretches to the full row height. The inner wrapper does the
   sticking, so it can never overflow the container into the footer. */
.blog-sidebar {
  min-width: 0;
}

.blog-sidebar-inner {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* --- CTA card (sidebar hero) --- */
.blog-sidebar-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.blog-sidebar-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(184, 115, 51, 0.35), transparent 60%);
  pointer-events: none;
}

.blog-sidebar-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

.blog-sidebar-cta-content {
  position: relative;
  z-index: 1;
}

.blog-sidebar-cta-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper-light);
  padding: 5px 12px;
  border: 1px solid rgba(184, 115, 51, 0.4);
  background: rgba(184, 115, 51, 0.12);
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

.blog-sidebar-cta-headline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.blog-sidebar-cta-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.blog-sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

.blog-sidebar-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--copper-light);
  text-decoration: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-base);
}

.blog-sidebar-phone:hover {
  color: var(--white);
}

/* --- Widget cards (Services, Categories) --- */
.blog-sidebar-widget {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.blog-sidebar-widget-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--cream);
}

.blog-sidebar-widget-title::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--copper);
  flex-shrink: 0;
}

.blog-sidebar-service-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar-service-list li {
  margin: 0;
}

.blog-sidebar-service-list li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 8px;
  border-radius: var(--radius-md);
  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

.blog-sidebar-service-list li a:hover {
  background: var(--off-white);
  color: var(--copper);
  transform: translateX(3px);
}

.blog-sidebar-service-list li a i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--copper-dim);
  color: var(--copper);
  border-radius: var(--radius-sm);
  font-size: 13px;
  flex-shrink: 0;
  transition: background var(--transition-base), color var(--transition-base);
}

.blog-sidebar-service-list li a:hover i {
  background: var(--copper);
  color: var(--white);
}

/* --- Stats card (row list) --- */
.blog-sidebar-stats {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.blog-sidebar-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--cream);
}

.blog-sidebar-stat:last-child {
  border-bottom: none;
}

.blog-sidebar-stat-num {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.blog-sidebar-stat-num a {
  color: inherit;
  text-decoration: none;
}

.blog-sidebar-stat-num a:hover {
  color: var(--copper);
}

.blog-sidebar-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: right;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  /* Stop the sidebar sticking once it stacks under the article */
  .blog-sidebar-inner {
    position: static;
  }
}

@media (max-width: 800px) {
  .post-featured-img-wrap {
    aspect-ratio: 16 / 9;
  }
  .post-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .post-before-after {
    grid-template-columns: 1fr;
  }
  .post-related-grid {
    grid-template-columns: 1fr;
  }
  .post-summary-grid {
    grid-template-columns: 1fr;
  }
  .post-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .post-author-bio-eyebrow {
    display: block;
  }
  .post-meta-divider {
    display: none;
  }
}
