/* ============================================================
   BLOG STYLES — Tri County Power Wash LLC
   ============================================================ */

/* -------- NAV ACTIVE STATE -------- */
.nav-brand { text-decoration: none; }
.active-nav { color: var(--sky) !important; }

.btn-outline-navy {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* -------- PAGE HERO -------- */
.page-hero {
  padding: 140px 0 72px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #163d6a 60%, #1a527a 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(74,173,214,0.07);
  pointer-events: none;
}
.page-hero-overlay { position: absolute; inset: 0; pointer-events: none; }
.page-hero-content { max-width: 640px; }
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 14px;
}
.page-hero-content p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -------- BLOG LAYOUT -------- */
.blog-section {
  padding: 72px 0 96px;
  background: var(--grey);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* -------- BLOG CARDS -------- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 28px;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Featured */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}
.featured-card .blog-card-img { min-height: 280px; }

.blog-card-img {
  position: relative;
  overflow: hidden;
}
.blog-card-img.featured-img { min-height: 100%; }

/* Color-coded placeholder backgrounds */
.img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.featured-card .img-placeholder { height: 100%; min-height: 280px; }

.roof-bg       { background: linear-gradient(135deg, #1a3a5c 0%, #2a5280 100%); }
.pressure-bg   { background: linear-gradient(135deg, #0f4c81 0%, #4aadd6 100%); }
.spring-bg     { background: linear-gradient(135deg, #1a5c3a 0%, #2a8055 100%); }
.gutter-bg     { background: linear-gradient(135deg, #5c3a1a 0%, #8a6040 100%); }
.window-bg     { background: linear-gradient(135deg, #1a3a5c 0%, #4aadd6 100%); }
.commercial-bg { background: linear-gradient(135deg, #2c1a5c 0%, #5a4080 100%); }

.post-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--sky);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.blog-card-body { padding: 28px; }
.featured-card .blog-card-body { padding: 36px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--grey-dark);
  margin-bottom: 10px;
}
.meta-dot { opacity: 0.4; }

.blog-card h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}
.featured-card h2 { font-size: 1.45rem; }

.blog-card h2 a {
  color: var(--navy);
  transition: color var(--transition);
}
.blog-card h2 a:hover { color: var(--sky); }
.blog-card h2 a.coming-soon { pointer-events: none; color: var(--text-light); }

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}
.featured-card p { font-size: 0.97rem; }

.read-more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--sky);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.read-more:hover { color: var(--navy); }

.coming-soon-badge {
  display: inline-block;
  background: var(--grey);
  color: var(--grey-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.posts-grid .blog-card { margin-bottom: 0; }

/* -------- SIDEBAR -------- */
.blog-sidebar { position: sticky; top: 90px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--grey);
}
.sidebar-widget > p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.6;
}

.sidebar-services {
  list-style: none;
}
.sidebar-services li {
  border-bottom: 1px solid var(--grey);
}
.sidebar-services li:last-child { border-bottom: none; }
.sidebar-services a {
  display: block;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  transition: color var(--transition);
}
.sidebar-services a:hover { color: var(--sky); }

.sidebar-cats {
  list-style: none;
}
.sidebar-cats li { border-bottom: 1px solid var(--grey); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  transition: color var(--transition);
}
.sidebar-cats a:hover { color: var(--sky); }
.sidebar-cats span {
  background: var(--grey);
  color: var(--grey-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 50px;
}

.highlight-widget {
  background: linear-gradient(135deg, var(--navy) 0%, #1a527a 100%);
  color: var(--white);
}
.highlight-widget .widget-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}
.highlight-widget .widget-stat {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 0;
}
.highlight-widget strong { color: var(--sky); }

/* -------- ARTICLE PAGE -------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 72px 0 96px;
}

.article-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero-img {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.article-content {
  padding: 44px 48px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--grey-dark);
  margin-bottom: 8px;
}

.article-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.25;
}

.article-body h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 36px 0 14px;
}
.article-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 24px 0 10px;
}
.article-body p {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-body li {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 6px;
}
.article-body strong { color: var(--text); }

.article-body .callout {
  background: linear-gradient(135deg, #eef6fc 0%, #f0f8ff 100%);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-body .callout p { margin-bottom: 0; color: var(--navy); font-weight: 500; }

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #163d6a 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 40px 0 0;
  text-align: center;
  color: var(--white);
}
.article-cta h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 0.95rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--navy); }

/* -------- RESPONSIVE -------- */
@media (max-width: 960px) {
  .blog-layout,
  .article-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .img-placeholder { min-height: 220px; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .article-content { padding: 28px 24px; }
  .article-body h2 { font-size: 1.1rem; }
  .posts-grid { grid-template-columns: 1fr; }
}
