/* Blog público GMG Construtora — CSS independente do build Vite (páginas PHP) */
* { box-sizing: border-box; }

:root {
  --navy: #081320;
  --ink: #16232f;
  --gold: #c8a86b;
  --gold-soft: #dcc28f;
  --bg: #f5f5f7;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.62));
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 12px 40px -20px rgba(20,28,48,0.15);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo img { height: 56px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { font-size: 14px; color: rgba(22,35,47,0.7); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }

/* ---- buttons ---- */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f0d9a8 0%, var(--gold-soft) 40%, var(--gold) 75%, #a8834a 100%);
  color: var(--navy); font-weight: 600; border-radius: 999px; padding: 12px 24px;
  box-shadow: 0 12px 30px -12px rgba(200,168,107,0.65);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 11px 22px; border: 1px solid rgba(22,35,47,0.12);
  background: rgba(255,255,255,0.55); color: var(--ink); font-weight: 500;
}

.gold-text {
  background: linear-gradient(135deg, #b58a3f 0%, var(--gold) 45%, var(--gold-soft) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- hero / intro sections ---- */
.blog-hero { padding: 148px 0 56px; text-align: center; }
.blog-hero .eyebrow {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--gold); border: 1px solid rgba(22,35,47,0.1); background: rgba(22,35,47,0.05);
  border-radius: 999px; padding: 6px 16px;
}
.blog-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; line-height: 1.1; margin: 20px auto 0; max-width: 760px; }
.blog-hero p { margin: 16px auto 0; max-width: 620px; color: rgba(22,35,47,0.6); }

/* ---- glass card ---- */
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 40px -20px rgba(20,28,48,0.18);
  border-radius: 14px;
}

/* ---- featured post ---- */
.featured-post {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
}
.featured-post .media { position: relative; height: 288px; background: #eee; }
.featured-post .media img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-post .kicker { display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); }
.featured-post .kicker .dot { color: rgba(22,35,47,0.3); }
.featured-post h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin: 16px 0 0; line-height: 1.25; }
.featured-post p.excerpt { margin: 12px 0 0; color: rgba(22,35,47,0.65); }
@media (min-width: 860px) {
  .featured-post { grid-template-columns: 1fr 1fr; }
  .featured-post .media { height: 100%; }
}

/* ---- grid ---- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr 1fr; } }

.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card .media { position: relative; height: 200px; overflow: hidden; background: #eee; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s ease; }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .kicker { display: flex; align-items: center; gap: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }
.post-card h3 { font-size: 17px; font-weight: 600; margin: 12px 0 0; line-height: 1.35; }
.post-card p.excerpt { margin: 8px 0 0; font-size: 14px; color: rgba(22,35,47,0.6); flex: 1; }
.post-card .foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(22,35,47,0.5); }

/* ---- article ---- */
article.post { padding: 148px 0 80px; }
article.post .kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); }
article.post h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; margin: 16px 0 0; line-height: 1.2; }
article.post .lede { margin: 16px 0 0; font-size: 18px; color: rgba(22,35,47,0.7); }
article.post .cover { margin-top: 40px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(22,35,47,0.1); }
article.post .cover img { width: 100%; height: 420px; object-fit: cover; }
.post-content { max-width: 720px; margin: 48px auto 0; font-size: 15.5px; line-height: 1.8; color: rgba(22,35,47,0.85); }
.post-content h2 { font-size: 1.5em; font-weight: 600; margin: 1.2em 0 0.5em; color: var(--ink); }
.post-content h3 { font-size: 1.2em; font-weight: 600; margin: 1em 0 0.4em; color: var(--ink); }
.post-content p { margin: 0 0 1em; }
.post-content ul, .post-content ol { margin: 0 0 1em 1.4em; }
.post-content img { border-radius: 10px; margin: 1.2em 0; }
.post-content blockquote { border-left: 3px solid var(--gold); padding-left: 16px; color: rgba(22,35,47,0.6); font-style: italic; margin: 1.2em 0; }

.cta-box { max-width: 720px; margin: 56px auto 0; padding: 40px; text-align: center; }
.cta-box h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin: 0; line-height: 1.3; }
.cta-box p { margin: 12px auto 0; max-width: 480px; color: rgba(22,35,47,0.6); }
.cta-box .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.related { padding: 0 0 96px; }
.related h3 { font-size: 18px; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .related-grid { grid-template-columns: 1fr 1fr 1fr; } }
.related-card .media { height: 160px; overflow: hidden; border-radius: 12px; }
.related-card .media img { width: 100%; height: 100%; object-fit: cover; }
.related-card .cat { margin-top: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }
.related-card .title { margin-top: 6px; font-size: 14px; font-weight: 600; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid rgba(22,35,47,0.06); padding: 32px 0; text-align: center; font-size: 12px; color: rgba(22,35,47,0.45); }

/* ---- filter/search bar (listing) ---- */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 40px 0 8px; }
.blog-toolbar input[type="text"] {
  flex: 1; min-width: 220px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(22,35,47,0.12); background: #fff; font: inherit; font-size: 14px;
}
.blog-empty { text-align: center; padding: 64px 0; color: rgba(22,35,47,0.5); }
