/* =============================================
   WEBGUY BLOG — Consistent with main site
   ============================================= */

/* ── Blog Index Hero ── */
.blog-hero {
  padding: 120px 56px 80px;
  border-bottom: 1px solid var(--sand);
  background: var(--cream);
}
.blog-hero .section-tag { margin-bottom: 20px; }
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.blog-hero h1 em { color: var(--orange); font-style: italic; }
.blog-hero p {
  font-size: 17px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.75;
}

/* ── Blog Grid — same gap+background trick as services ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--sand);
  border-top: 2px solid var(--sand);
  border-bottom: 2px solid var(--sand);
}
.blog-card {
  background: var(--cream);
  padding: 44px 56px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
  cursor: none;
  position: relative;
  overflow: hidden;
}
.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover::after { transform: scaleX(1); }
.blog-card:hover { background: var(--warm); }

.blog-card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.blog-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  flex: 1;
}
.blog-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--mid);
  font-family: 'DM Mono', monospace;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--sand);
}
.blog-card-arrow {
  margin-left: auto;
  color: var(--orange);
  font-size: 18px;
  transition: transform 0.25s;
}
.blog-card:hover .blog-card-arrow { transform: translate(4px, -4px); }

/* Featured card spans 2 cols, dark like the process section */
.blog-featured {
  grid-column: span 2;
  background: var(--ink);
  padding: 56px 56px;
}
.blog-featured:hover { background: #241a0e; }
.blog-featured::after { background: var(--orange); }
.blog-featured .blog-card-tag { color: var(--orange); }
.blog-featured h2 {
  font-size: 36px;
  color: var(--cream);
}
.blog-featured p { color: rgba(250,247,242,0.45); }
.blog-featured .blog-card-meta {
  color: rgba(250,247,242,0.3);
  border-top-color: rgba(250,247,242,0.08);
}

/* ── Blog CTA band — mirrors contact/pricing CTA style ── */
.blog-cta-band {
  padding: 120px 56px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.blog-cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
}
.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  cursor: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.blog-cta-btn:hover { background: white; }

/* ══════════════════════════════════════════════
   POST LAYOUT
   ══════════════════════════════════════════════ */

/* ── Breadcrumbs ── */
.breadcrumb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 64px;
  border-left: 1px solid var(--sand);
  border-right: 1px solid var(--sand);
  background: var(--cream);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}
.breadcrumb li + li::before {
  content: '/';
  color: var(--sand);
  font-size: 11px;
}
.breadcrumb a {
  color: var(--mid);
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li:last-child {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 1200px) {
  .breadcrumb-wrap { max-width: 100%; border-left: none; border-right: none; padding: 14px 40px; }
}
@media (max-width: 640px) {
  .breadcrumb-wrap { padding: 12px 20px; }
}

/* ── Post Hero ── */
.post-hero {
  padding: 80px 64px 64px;
  border-bottom: 1px solid var(--sand);
  background: var(--cream);
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--sand);
  border-right: 1px solid var(--sand);
}
.post-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-tag::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--orange); }
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.post-title em { color: var(--orange); font-style: italic; }
.post-intro {
  font-size: 19px;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 36px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.08em;
}
.post-meta-dot { color: var(--sand); }

/* ── Post body: article + sidebar ── */
.post-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2px;
  background: var(--sand);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--sand);
  border-right: 1px solid var(--sand);
}

/* ── Article content ── */
.post-content {
  background: var(--cream);
  padding: 72px 64px;
}
/* Cap reading line length */
.post-content > * {
  max-width: 600px;
}
.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 56px 0 18px;
  color: var(--ink);
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--ink);
}
.post-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #332b20;
  font-weight: 300;
  margin-bottom: 24px;
}
.post-content ul, .post-content ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-content li {
  font-size: 17px;
  line-height: 1.75;
  color: #332b20;
  font-weight: 300;
  padding-left: 24px;
  position: relative;
}
.post-content li::before {
  content: '↳';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 13px;
}
.post-content strong { font-weight: 600; color: var(--ink); }
.post-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; cursor: none; }
.post-content a:hover { color: var(--ink); }

/* Callout box — like the featured-tag style */
.callout {
  background: var(--warm);
  border-left: 3px solid var(--orange);
  padding: 22px 28px;
  margin: 36px 0;
}
.callout p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
}
.callout strong { color: var(--orange); }

/* Price / comparison table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  border: 1px solid var(--sand);
}
.price-table th {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--sand);
  vertical-align: top;
  line-height: 1.6;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--warm); }

/* ── Sidebar ── */
.post-sidebar {
  background: var(--warm);
  padding: 56px 48px;
  position: sticky;
  top: 100px;
}
.sidebar-widget { margin-bottom: 48px; }
.sidebar-widget:last-child { margin-bottom: 0; }
.sidebar-widget-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand);
}
/* Sidebar CTA — big, bold, unmissable */
.sidebar-cta {
  background: var(--ink);
  padding: 40px 36px;
}
.sidebar-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.sidebar-cta p {
  font-size: 14px;
  color: rgba(250,247,242,0.5);
  line-height: 1.75;
  margin-bottom: 28px;
  font-weight: 300;
}
.sidebar-price {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.sidebar-price span {
  font-size: 26px;
  vertical-align: super;
  letter-spacing: 0;
}
.sidebar-price-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.3);
  margin-bottom: 28px;
  display: block;
}
.sidebar-cta-btn {
  display: block;
  text-align: center;
  padding: 18px 20px;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: none;
  transition: background 0.2s;
}
.sidebar-cta-btn:hover { background: #d4470f; }

.sidebar-posts { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-posts li { border-bottom: 1px solid var(--sand); }
.sidebar-posts li:last-child { border-bottom: none; }
.sidebar-posts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
  cursor: none;
  transition: color 0.2s;
  gap: 8px;
}
.sidebar-posts a::after { content: '↗'; color: var(--orange); opacity: 0; transition: opacity 0.2s; flex-shrink: 0; }
.sidebar-posts a:hover { color: var(--orange); }
.sidebar-posts a:hover::after { opacity: 1; }

/* ── Post footer CTA — same as blog-cta-band ── */
.post-footer-cta {
  padding: 120px 56px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.post-footer-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
}
.post-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  cursor: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.post-footer-cta-btn:hover { background: white; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .post-body { grid-template-columns: 1fr 340px; max-width: 100%; border-left: none; border-right: none; }
  .post-hero { max-width: 100%; border-left: none; border-right: none; padding: 80px 40px 56px; }
  .post-content { padding: 64px 40px; }
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-column: span 2; }
  .blog-hero, .blog-cta-band, .post-footer-cta { padding: 80px 28px; }
  .post-body { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .post-content { padding: 56px 40px; }
  .post-hero { padding: 72px 40px 48px; }
  .post-content > * { max-width: 100%; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; background: none; border: none; gap: 0; }
  .blog-featured { grid-column: span 1; }
  .blog-card { padding: 32px 28px; border-bottom: 1px solid var(--sand); }
  .blog-featured { padding: 40px 28px; }
  .blog-hero, .post-hero { padding: 48px 20px 36px; }
  .blog-cta-band, .post-footer-cta { flex-direction: column; align-items: flex-start; padding: 56px 20px; }
  .post-content { padding: 36px 20px; }
  .post-content h2 { font-size: 26px; margin-top: 40px; }
}
