/* ==========================================================================
   RENOVA GRASS - ESTILOS BASE DO CABEÇALHO E RODAPÉ (CSS PURO)
   Garante 100% da estilização mesmo se o Tailwind CDN falhar ou demorar
   ========================================================================== */

:root {
  --rg-primary: #002210;
  --rg-primary-container: #0f3822;
  --rg-on-primary: #ffffff;
  --rg-on-primary-container: #78a285;
  --rg-secondary: #006e2d;
  --rg-secondary-fixed: #7ffc97;
  --rg-secondary-fixed-dim: #62df7d;
  --rg-surface: #faf8ff;
  --rg-surface-card: #FFFFFF;
  --rg-surface-container: #eaedff;
  --rg-surface-container-low: #f2f3ff;
  --rg-on-surface: #131b2e;
  --rg-on-surface-variant: #414942;
  --rg-gold-star: #F59E0B;
  --rg-whatsapp: #25D366;
  --rg-border: #E2E8F0;
}

/* Reset Base */
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--rg-surface);
  color: var(--rg-on-surface);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Utilitários de Cores */
.bg-surface { background-color: var(--rg-surface) !important; }
.bg-primary { background-color: var(--rg-primary) !important; }
.bg-primary-container { background-color: var(--rg-primary-container) !important; }
.bg-secondary { background-color: var(--rg-secondary) !important; }
.bg-surface-container { background-color: var(--rg-surface-container) !important; }
.bg-surface-container-low { background-color: var(--rg-surface-container-low) !important; }
.bg-whatsapp-emerald { background-color: var(--rg-whatsapp) !important; }

.text-surface { color: var(--rg-surface) !important; }
.text-primary { color: var(--rg-primary) !important; }
.text-secondary { color: var(--rg-secondary) !important; }
.text-on-secondary { color: #ffffff !important; }
.text-on-primary { color: #ffffff !important; }
.text-on-primary-container { color: var(--rg-on-primary-container) !important; }
.text-on-surface { color: var(--rg-on-surface) !important; }
.text-on-surface-variant { color: var(--rg-on-surface-variant) !important; }
.text-gold-star { color: var(--rg-gold-star) !important; }

/* Tipografia */
.font-headline-sm { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; line-height: 26px; font-weight: 600; }
.font-headline-md { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; line-height: 30px; font-weight: 600; }
.font-headline-xl { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 40px; line-height: 48px; font-weight: 700; }
.font-display-hero { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 56px; line-height: 64px; font-weight: 800; }
.font-label-md { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; line-height: 18px; font-weight: 600; }
.font-label-lg { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; line-height: 20px; font-weight: 600; }
.font-label-caps { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; }
.font-body-sm { font-family: 'Inter', sans-serif; font-size: 14px; line-height: 20px; }
.font-body-md { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 24px; }
.font-body-lg { font-family: 'Inter', sans-serif; font-size: 18px; line-height: 28px; }

/* Material Symbols Icon */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
}

/* CABEÇALHO */
header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(250, 248, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.h-20 { height: 5rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-margin { padding-left: 2rem; padding-right: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-space-md { gap: 1rem; }
.gap-space-sm { gap: 0.5rem; }
.gap-space-xs { gap: 0.25rem; }
.shrink-0 { flex-shrink: 0; }

/* Links do cabeçalho */
header nav a {
  text-decoration: none;
  transition: all 0.2s ease;
}
header nav a:hover {
  background-color: var(--rg-surface-container-low);
  color: var(--rg-on-surface);
}

/* Botão Orçamento do cabeçalho */
header a[data-path="orcamento"] {
  text-decoration: none;
  background-color: var(--rg-secondary);
  color: #ffffff;
  box-shadow: 0 4px 16px -2px rgba(0, 110, 45, 0.3);
  transition: all 0.2s ease;
}
header a[data-path="orcamento"]:hover {
  background-color: var(--rg-secondary-fixed-dim);
  color: #002109;
}

/* Espaçador do topo */
main.pt-20 {
  padding-top: 5rem;
}

/* RODAPÉ */
footer {
  background-color: var(--rg-primary-container) !important;
  color: var(--rg-surface);
  padding-top: 6rem;
  padding-bottom: 4rem;
}

footer a, footer li {
  text-decoration: none;
  transition: color 0.2s ease;
}

footer .grid {
  display: grid;
}

/* Grid responsivo do Rodapé */
@media (min-width: 1024px) {
  footer .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  footer .lg\:col-span-4 { grid-column: span 4 / span 4; }
  footer .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (max-width: 1023px) and (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* WhatsApp Flutuante */
aside.fixed {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

aside a {
  text-decoration: none;
  transition: transform 0.2s ease;
}
aside a:hover {
  transform: scale(1.05);
}


/* ==========================================================================
   TIPOGRAFIA E ESTILIZAÇÃO DO CONTEÚDO (PROSE / SINGLE POST)
   Preserva tabelas, títulos, listas, imagens e parágrafos do WordPress
   ========================================================================== */

.rg-prose {
  color: var(--rg-on-surface);
  line-height: 1.8;
  font-size: 1.125rem;
}

.rg-prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--rg-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.rg-prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: var(--rg-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.rg-prose h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--rg-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.rg-prose p {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.rg-prose strong, .rg-prose b {
  color: var(--rg-primary);
  font-weight: 700;
}

.rg-prose a {
  color: var(--rg-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.rg-prose a:hover {
  color: #005320;
}

.rg-prose ul {
  list-style-type: disc;
  padding-left: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.rg-prose ol {
  list-style-type: decimal;
  padding-left: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.rg-prose li {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.rg-prose blockquote {
  border-left: 4px solid var(--rg-secondary);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--rg-on-surface-variant);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.rg-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.rg-prose figure {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.rg-prose figcaption, .rg-prose .wp-caption-text {
  font-size: 0.875rem;
  color: var(--rg-on-surface-variant);
  text-align: center;
  margin-top: 0.5rem;
}

.rg-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.rg-prose th, .rg-prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--rg-border);
  text-align: left;
}

.rg-prose th {
  background-color: var(--rg-surface-container);
  color: var(--rg-primary);
  font-weight: 700;
}
