/* ===================================================================
   BLOG — shared styles (matches main site)
   =================================================================== */
:root {
  --bg:       #f1efe9;
  --bg-2:     #e4e1d6;
  --bg-card:  #ffffff;
  --ink:      #0e1716;
  --ink-2:    #1c2625;
  --muted:    #5f6a68;
  --line:     #d3cec0;
  --accent:   #00c7c0;
  --accent-2: #5fd9d3;
  --dark:     #0e1716;
  --dark-2:   #1c2625;
  --on-dark:  #eef1ed;
  --on-dark-mute: rgba(238,241,237,.58);

  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius: 4px;
  --radius-lg: 14px;
  --container: 1280px;
  --gutter: 32px;

  /* Category accents */
  --cat-projetos: #3a8fb7;
  --cat-reforma: #d97a3a;
  --cat-marcenaria: #8b6f47;
  --cat-dicas: #00c7c0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: var(--on-dark); transform: translateY(-2px); }
.btn-on-dark { background: var(--on-dark); color: var(--ink); }
.btn-on-dark:hover { background: var(--accent); color: var(--ink); }
.btn-arrow::after { content: '→'; transition: transform .25s; }
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============ NAV ============ */
#nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: var(--container);
  border-radius: 999px;
  background: rgba(241,239,233,.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(14,23,22,.92);
  border-color: rgba(0,199,192,.25);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
#nav.scrolled .nav-links a { color: var(--on-dark); }
#nav.scrolled .nav-cta { background: var(--on-dark); color: var(--ink); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 22px;
  height: 76px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  padding: 10px 18px;
  font-size: 13px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: background .25s;
}
.nav-cta:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============ BLOG HEADER ============ */
.blog-header {
  padding: 160px 0 64px;
}
.blog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 24px 0 32px;
}
.blog-header h1 em { font-style: italic; color: var(--accent); }
.blog-header p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.55;
}

/* Category filter */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.cat-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .2s;
  cursor: pointer;
}
.cat-pill:hover { border-color: var(--ink); }
.cat-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-pill .cat-count {
  font-family: var(--font-mono);
  font-size: 10px;
  margin-left: 6px;
  opacity: .6;
}

/* ============ BLOG GRID — editorial magazine layout ============ */
.blog-section {
  padding: 32px 0 140px;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
  align-items: stretch;
}
.featured-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--on-dark);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.featured-main:hover { transform: translateY(-4px); }
.featured-main .post-image {
  position: absolute; inset: 0;
  z-index: 0;
}
.featured-main .post-image image-slot { width: 100%; height: 100%; display: block; }
.featured-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,23,22,.95) 0%, rgba(14,23,22,.4) 55%, transparent 100%);
  z-index: 1;
}
.featured-main .post-body {
  position: relative;
  z-index: 2;
  padding: 48px 48px 44px;
}
.featured-main .post-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--on-dark);
  margin: 16px 0 18px;
  max-width: 18ch;
}
.featured-main .post-excerpt {
  font-size: 16px;
  color: rgba(238,241,237,.8);
  max-width: 48ch;
  margin-bottom: 20px;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.featured-side .post-card {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.featured-side .post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.featured-side .post-image { position: relative; overflow: hidden; background: var(--bg-2); }
.featured-side .post-image image-slot { width: 100%; height: 100%; display: block; }
.featured-side .post-body { padding: 20px 24px 20px 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.featured-side .post-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.post-card .post-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 20px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.post-card .post-image image-slot { width: 100%; height: 100%; display: block; }
.post-card:hover .post-image { transform: translateY(-4px); }
.post-card .post-body { display: flex; flex-direction: column; gap: 10px; }
.post-card .post-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
  transition: color .2s;
}
.post-card:hover .post-title { color: var(--accent); }
.post-card .post-excerpt {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.featured-main .post-meta { color: var(--accent-2); }
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--cat-projetos);
  color: #fff;
}
.cat-tag.cat-projetos { background: var(--cat-projetos); }
.cat-tag.cat-reforma { background: var(--cat-reforma); }
.cat-tag.cat-marcenaria { background: var(--cat-marcenaria); }
.cat-tag.cat-dicas { background: var(--cat-dicas); color: var(--ink); }

@media (max-width: 1024px) {
  .blog-featured { grid-template-columns: 1fr; }
  .featured-main { min-height: 460px; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
  .featured-main .post-body { padding: 32px 24px 28px; }
  .featured-side .post-card { grid-template-columns: 1fr; }
  .featured-side .post-image { aspect-ratio: 16/9; }
  .featured-side .post-body { padding: 16px 20px 20px; }
}

/* ============ POST ARTICLE ============ */
.post-hero {
  padding: 140px 0 64px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .4; }

.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 20px 0 28px;
  max-width: 22ch;
}
.post-hero h1 em { font-style: italic; color: var(--accent); }
.post-hero .post-excerpt {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.4;
  margin-bottom: 36px;
}
.post-hero .post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
}
.post-hero .post-meta-row strong {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ink);
}

.post-cover {
  margin: 0 auto 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  max-width: var(--container);
}
.post-cover image-slot { width: 100%; height: 100%; display: block; }

/* Article body — measured for reading */
.post-body-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}
.post-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}
.post-content p { margin-bottom: 24px; }
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  margin: 48px 0 18px;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  margin: 36px 0 14px;
}
.post-content ul, .post-content ol {
  margin: 0 0 24px 24px;
  padding-left: 0;
}
.post-content li { margin-bottom: 10px; }
.post-content ul li { list-style: none; padding-left: 24px; position: relative; }
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.post-content strong { color: var(--ink); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content p a,
.post-content li a,
.post-content blockquote a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-content p a:hover,
.post-content li a:hover,
.post-content blockquote a:hover { color: var(--ink); }
.post-content a.btn { text-decoration: none; }
.post-content a.btn:hover { text-decoration: none; }
.post-content blockquote {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--accent);
  margin: 36px 0;
}

/* Inline CTA */
.post-cta {
  margin: 56px 0;
  background: var(--ink);
  color: var(--on-dark);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,199,192,.18) 0%, transparent 70%);
  pointer-events: none;
}
.post-cta-inner { position: relative; z-index: 1; }
.post-cta .eyebrow { color: var(--accent-2); justify-content: center; }
.post-cta .eyebrow::before { background: var(--accent-2); }
.post-cta h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 400;
  margin: 14px 0 10px;
}
.post-cta h3 em { font-style: italic; color: var(--accent-2); }
.post-cta p {
  color: var(--on-dark-mute);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* Share row */
.post-share {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.post-share-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-icons {
  display: flex;
  gap: 10px;
}
.share-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all .2s;
  background: transparent;
}
.share-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}
.share-icon svg { width: 16px; height: 16px; }

/* Comments */
.post-comments {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--gutter) 60px;
}
.post-comments h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.post-comments > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.comment-form {
  display: grid;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
}
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form .submit-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.comment-form .submit-row small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.comment-list { display: flex; flex-direction: column; gap: 24px; }
.comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: 0; }
.comment-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
}
.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.comment-head strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.comment-head time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.comment p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 600px) {
  .comment-form .row { grid-template-columns: 1fr; }
}

/* Related posts */
.related {
  background: var(--bg-2);
  padding: 100px 0;
}
.related h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 48px;
}
.related h3 em { font-style: italic; color: var(--accent); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 880px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
footer {
  background: #0a1110;
  color: var(--on-dark-mute);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
.footer-brand-img {
  display: block;
  height: 90px;
  width: auto;
  margin-bottom: 24px;
}
.footer-brand p { max-width: 36ch; font-size: 14px; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--on-dark-mute);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-contato ul { gap: 12px; }
.footer-contato a,
.footer-contato .contato-endereco {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.footer-contato .contato-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(238,241,237,.15);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contato .contato-endereco {
  color: var(--on-dark-mute);
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid rgba(238,241,237,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(37,211,102,.4);
  z-index: 50;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Fade-in */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.fade-up.in { opacity: 1; transform: translateY(0); }
