/* ============================================================
   Blog styles — Red Remodels
   Fonts: Montserrat (headings) / Lato (body) via Google Fonts
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:     #c0392b;
  --red-dk:  #962d22;
  --gray:    #4a4a4a;
  --gray-lt: #f5f5f5;
  --border:  #e2e2e2;
  --max-w:   740px;
  --nav-h:   64px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--gray);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Page shell ───────────────────────────────────────────── */
.page-wrap { min-height: calc(100vh - var(--nav-h)); }

/* ── Blog index ───────────────────────────────────────────── */
.blog-hero {
  background:
    linear-gradient(rgba(3, 26, 54, 0.78), rgba(3, 26, 54, 0.78)),
    url('/assets/images/stock-photo-beautiful-custom-kitchen-design-drawing-and-gradated-photo-combination-365318801-1920w.jpg')
    center / cover no-repeat;
  padding: 72px 24px 64px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: #fff; margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.blog-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto; }

.post-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none; color: inherit;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.post-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: var(--gray-lt);
}
.post-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--red);
  background: rgba(192,57,43,.08);
  padding: 3px 8px; border-radius: 3px;
}
.post-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: #1a1a1a; line-height: 1.4;
  margin-bottom: 10px;
}
.post-card p { font-size: .9rem; color: var(--gray); flex: 1; }
.post-card-meta {
  margin-top: 16px;
  font-size: .8rem; color: #888;
  font-family: 'Montserrat', sans-serif;
}

/* ── Single post ──────────────────────────────────────────── */
.post-header {
  background: var(--gray-lt);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px 44px;
}
.post-header-inner { max-width: var(--max-w); margin: 0 auto; }
.post-breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; color: #888; margin-bottom: 16px;
}
.post-breadcrumb a { color: var(--red); text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: #1a1a1a; line-height: 1.3;
  margin-bottom: 16px;
}
.post-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem; color: #888;
}

.post-body { max-width: var(--max-w); margin: 0 auto; padding: 44px 24px 80px; }

/* ── Markdown content ─────────────────────────────────────── */
.post-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem; font-weight: 700;
  color: #1a1a1a; margin: 2.2rem 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--red);
}
.post-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: #1a1a1a; margin: 1.8rem 0 .6rem;
}
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol {
  margin: 0 0 1.2rem 1.4rem;
}
.post-content li { margin-bottom: .4rem; }
.post-content a { color: var(--red); }
.post-content a:hover { color: var(--red-dk); }
.post-content strong { font-weight: 700; color: #1a1a1a; }
.post-content table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 1.4rem; font-size: .92rem;
}
.post-content th {
  font-family: 'Montserrat', sans-serif;
  background: var(--red); color: #fff;
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .4px; padding: 10px 14px;
  text-align: left;
}
.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.post-content tr:nth-child(even) td { background: var(--gray-lt); }
.post-content blockquote {
  border-left: 4px solid var(--red);
  background: rgba(192,57,43,.05);
  margin: 1.4rem 0; padding: 14px 20px;
  border-radius: 0 6px 6px 0;
}
.post-content code {
  font-size: .88em; background: var(--gray-lt);
  padding: 2px 6px; border-radius: 3px;
}
.post-content pre {
  background: #1a1a1a; color: #f5f5f5;
  padding: 18px 22px; border-radius: 6px;
  overflow-x: auto; margin-bottom: 1.4rem;
}
.post-content pre code { background: none; padding: 0; font-size: .85rem; }
.post-content img {
  max-width: 100%; border-radius: 6px;
  margin: 1.2rem 0; display: block;
}
.post-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 2.4rem 0;
}

/* ── CTA box ──────────────────────────────────────────────── */
.post-cta {
  background: var(--red); color: #fff;
  border-radius: 8px; padding: 36px 32px;
  text-align: center; margin: 2.4rem 0 0;
}
.post-cta h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem; font-weight: 700; margin-bottom: 10px;
}
.post-cta p { margin-bottom: 20px; opacity: .92; }
.post-cta a {
  display: inline-block;
  background: #fff; color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .9rem;
  padding: 12px 28px; border-radius: 4px;
  text-decoration: none; letter-spacing: .3px;
  transition: opacity .15s;
}
.post-cta a:hover { opacity: .88; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a; color: #aaa;
  text-align: center; padding: 28px 24px;
  font-size: .82rem; font-family: 'Montserrat', sans-serif;
}
.site-footer a { color: var(--red); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Video embed (responsive 16:9) ───────────────────────── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 2rem 0;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-hero { padding: 52px 24px 44px; }
  .blog-hero h1 { font-size: 1.7rem; }
  .post-header h1 { font-size: 1.5rem; }
  .nav-links { display: none; }
  .post-cta { padding: 28px 20px; }
}
