/* Estilos base do Blog - ABC da Construção Itu
   Garante visual completo localmente e em produção (compatível com ../style.css) */

:root {
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary: #e30613;
  --primary-dark: #b90510;
  --on-surface: #141923;
  --on-surface-variant: #4b5563;
  --surface: #f8f9fb;
  --surface-container-low: #f1f4f8;
  --surface-container-lowest: #ffffff;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-ambient: 0 8px 28px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 14px 36px rgba(15, 23, 42, 0.12);
  --transition: all 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--on-surface);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.logo img {
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--on-surface);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--primary);
}

.header-nav .btn-nav {
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}

.header-nav .btn-nav:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

/* Tags e Botões */
.blog-tag {
  display: inline-block;
  background: rgba(227, 6, 19, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: #141923;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 380px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: 0.25rem 0;
}

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    padding-block: 0.75rem;
    gap: 0.75rem;
  }
  .header-nav {
    justify-content: center;
    gap: 0.9rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 0.85rem;
  }
}
