﻿html {
  scroll-behavior: smooth;
}

body {
  color: var(--cor-texto);
  background: linear-gradient(180deg, #f8fcfd 0%, var(--cor-fundo) 100%);
}

.hero-overlay {
  background: linear-gradient(165deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(14, 165, 183, 0.45) 100%);
}

.home-header-divider {
  height: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(165, 243, 252, 0.7);
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.3), rgba(236, 254, 255, 0.92), rgba(103, 232, 249, 0.3));
}

.home-hero {
  margin-top: -1px;
  min-height: calc(100vh - 96px);
}

.home-hero-content {
  min-height: inherit;
}

.titulo-secao {
  color: var(--cor-secundaria);
}

.btn-primario {
  background-color: var(--cor-primaria);
  color: white;
}

.btn-primario:hover {
  filter: brightness(0.95);
}

.btn-whatsapp-topo {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 1rem;
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--cor-primaria) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-topo svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.whatsapp-numero-topo {
  display: inline-block;
  font-weight: 700;
  line-height: 1;
}

.btn-whatsapp-topo:hover {
  background-color: var(--cor-secundaria) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.btn-whatsapp-topo-mobile {
  width: 100%;
}

.btn-outline {
  border: 1px solid color-mix(in srgb, var(--cor-secundaria) 30%, #fff);
  color: var(--cor-secundaria);
}

.card-sombra {
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4 {
  color: var(--cor-secundaria);
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.prose-content p,
.prose-content li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
}

.prose-content ul {
  list-style: disc;
  margin-left: 1.2rem;
}

.page-layout-base {
  background: #e6eaef;
}

.page-layout-panel {
  border: 1px solid #d8dce3;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.page-layout-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--cor-primaria);
  font-size: 1.25rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.page-layout-back-link:hover {
  opacity: 0.85;
}

.page-layout-metric {
  border: 1px solid #d8dce3;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1.1rem;
  text-align: center;
}

.page-title-main {
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 800;
}

.blog-info-compact span {
  font-size: 12px !important;
}

.blog-meta-date {
  font-size: 14px !important;
  line-height: 1.4;
}

.blog-meta-summary {
  font-size: 16px !important;
  line-height: 1.55;
}

.blog-post-metrics .page-layout-metric {
  padding: 0.9rem;
}

.blog-metric-value {
  font-size: 22px !important;
  line-height: 1.2;
}

.blog-metric-label {
  font-size: 14px !important;
  line-height: 1.35;
}

.sidebar-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.9rem;
  background: #f3f4f6;
  color: #1e293b;
  padding: 0.85rem 1rem;
}

.sidebar-input:focus {
  outline: none;
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cor-primaria) 20%, #ffffff);
  background: #fff;
}

.blog-post-content p,
.blog-post-content li {
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 0.95rem;
  color: #334155;
}

.blog-post-content strong {
  color: #0f172a;
  font-weight: 700;
}

.page-layout-base .prose-content p,
.page-layout-base .prose-content li {
  font-size: 0.95rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .home-hero {
    min-height: calc(100vh - 84px);
  }

  .page-title-main {
    font-size: 26px !important;
  }

  .page-layout-back-link {
    font-size: 1rem;
  }

  .blog-post-content p,
  .blog-post-content li {
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .blog-meta-date {
    font-size: 13px !important;
  }

  .blog-meta-summary {
    font-size: 15px !important;
  }

  .blog-metric-value {
    font-size: 20px !important;
  }

  .blog-metric-label {
    font-size: 13px !important;
  }
}

/* Sistema tipografico global */
:root {
  --type-size-topo: 14px;
  --type-size-header: 16px;
  --type-size-body: 16px;
  --type-size-footer: 15px;
  --type-size-h1: 40px;
  --type-size-h2: 28px;
  --type-size-h3: 20px;
  --type-size-h4: 18px;
  --type-size-h5: 16px;
  --type-size-h6: 14px;
  --type-size-caption: 13px;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: var(--type-size-body);
  line-height: 1.6;
}

main {
  font-size: var(--type-size-body);
}

h1 {
  font-size: var(--type-size-h1) !important;
  line-height: 1.2 !important;
}

h2 {
  font-size: var(--type-size-h2) !important;
  line-height: 1.28 !important;
}

h3 {
  font-size: var(--type-size-h3) !important;
  line-height: 1.32 !important;
}

h4 {
  font-size: var(--type-size-h4) !important;
  line-height: 1.35 !important;
}

h5 {
  font-size: var(--type-size-h5) !important;
  line-height: 1.4 !important;
}

h6,
h7 {
  display: block;
  font-size: var(--type-size-h6) !important;
  line-height: 1.45 !important;
}

p,
ul,
ol,
li {
  font-size: var(--type-size-body);
  line-height: 1.7;
}

label,
input,
textarea,
select,
button {
  font-family: "Poppins", sans-serif;
  font-size: var(--type-size-body);
}

small,
.text-xs,
.text-sm,
.tag,
.legend,
.legenda {
  font-size: var(--type-size-caption) !important;
  line-height: 1.4;
}

.site-header {
  font-size: var(--type-size-topo);
}

.site-header #menu-principal,
.site-header #mobile-menu nav {
  font-size: var(--type-size-header) !important;
  line-height: 1.4;
}

.site-header a,
.site-header button {
  font-size: inherit;
}

.site-breadcrumb {
  font-size: 13px !important;
  line-height: 1.35;
}

.site-breadcrumb a,
.site-breadcrumb span {
  font-size: 13px !important;
}

.site-footer {
  font-size: var(--type-size-footer);
  line-height: 1.6;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  font-size: var(--type-size-h5) !important;
  line-height: 1.35 !important;
}

.site-footer p,
.site-footer ul,
.site-footer li,
.site-footer a,
.site-footer span {
  font-size: var(--type-size-footer);
}

@media (max-width: 1024px) {
  :root {
    --type-size-header: 15px;
    --type-size-footer: 14px;
    --type-size-h1: 30px;
    --type-size-h2: 24px;
    --type-size-h3: 20px;
    --type-size-h4: 17px;
    --type-size-h5: 15px;
  }
}

@media (max-width: 768px) {
  :root {
    --type-size-topo: 13px;
    --type-size-header: 15px;
    --type-size-body: 15px;
    --type-size-footer: 14px;
    --type-size-h1: 28px;
    --type-size-h2: 20px;
    --type-size-h3: 17px;
    --type-size-h4: 15px;
    --type-size-h5: 14px;
    --type-size-h6: 13px;
    --type-size-caption: 12px;
  }
}
