/* ============================================================
   main.css - Global
   Design system compartilhado entre todas as pédias
   Versão: 1.0 · abril 2026
   Fonte: Ubuntu (Google Fonts)
   ============================================================ */

/* ── Design system (Reutilizável entre pédias) ── */
:root {
  /* ── Cores primárias ── */
  --blue:         #185FA5;
  --blue-light:   #E6F1FB;
  --blue-mid:     #3576B8;
  --blue-border:  #85B7EB;
  --blue-dark:    #0C447C;
  
  /* ── Cores secundárias ── */
  --teal:         #1D9E75;
  --teal-light:   #E1F5EE;
  --teal-border:  #5DCAA5;
  --teal-dark:    #085041;
  
  --purple:       #534AB7;
  --purple-light: #EEEDFE;
  --purple-border: #AFA9EC;
  --purple-dark:  #3C3489;
  
  --amber:        #BA7517;
  --amber-light:  #FAEEDA;
  --amber-border: #EF9F27;
  --amber-dark:   #633806;
  
  --green:        #3B6D11;
  --green-light:  #EAF3DE;
  --green-border: #97C459;
  --green-dark:   #27500A;
  
  --gray:         #4A4A48;
  --gray-light:   #F1EFE8;
  --gray-border:  #B4B2A9;
  --gray-dark:    #2C2C2A;
  
  /* ── Tipografia e neutros ── */
  --text:         #181816;
  --text-mid:     #3d3d3a;
  --text-muted:   #5f5e5a;
  --text-light:   #73726c;
  --bg:           #f8f7f3;
  --bg-card:      #ffffff;
  --font:         'Ubuntu', sans-serif;

  /* ── Bordas e sombras ── */
  --border:       rgba(26,26,24,0.09);
  --border-med:   rgba(26,26,24,0.18);
  --radius:       8px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.10);

  /* ── Feedback ── */
  --danger:       #dc3545;
}

/* ── Reset e base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Tipografia ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin-bottom: 18px;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

a:hover {
  color: var(--blue-dark);
}

/* ── Listas ── */
ul, ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

/* ── Imagens ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Tabelas ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.9rem;
}

th {
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  padding: 10px 14px;
  text-align: left;
}

td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: var(--bg);
}

/* ── Botões ── */
button {
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

/* ── Containers ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Utilidades ── */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ── Responsivo ── */
@media (max-width: 640px) {
  :root {
    font-size: 14px;
  }
  
  .container {
    padding: 0 16px;
  }
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.breadcrumb-inner a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb-inner a:hover {
  color: var(--blue);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* ── Pedia Hero (base compartilhada entre domínio e artigo) ── */
.pedia-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #2178c8 100%);
  padding: 52px 0 48px;
  overflow: hidden;
  position: relative;
}

.pedia-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.pedia-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.pedia-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.pedia-hero-eyebrow .article-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  margin-right: 4px;
}

.pedia-hero-eyebrow .article-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.pedia-hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 780px;
}

.pedia-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pedia-hero {
    padding: 36px 0 32px;
  }

  .pedia-hero-inner {
    padding: 0 20px;
  }

  .pedia-hero h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 640px) {
  .pedia-hero h1 {
    font-size: 1.5rem;
  }

  .pedia-hero-sub {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .pedia-hero-eyebrow {
    font-size: 0.65rem;
  }

  .breadcrumb-current {
    max-width: 200px;
  }
}

/* jQuery Validation */
label.invalid-feedback {
  display: block;
  color: var(--danger);
  font-size: 12px;
}

.link-ver-mais {
  display: inline-block;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 0;
  transition: color 0.14s;
}

.bg-modal-header {
  background-color: var(--blue-dark) !important;
}

form input, textarea{
  flex: 1 !important;
  padding: 12px 16px !important;
  border-radius: 9px !important;
  border: 1.5px solid var(--border) !important;
  background: #ffffff !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: var(--text) !important;
  outline: none !important;
  transition: border-color 0.15s !important;
}

.btn-geral-1 {
  padding: 12px 22px;
  border-radius: 9px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-geral-1:hover {
  background: var(--blue-dark);
  color: #ffffff;
}

/* ── Home global (/) ── */
.global-home {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 40px 16px;
  text-align: center;
}

.global-home-main-logo {
  width: min(100%, 700px);
  height: auto;
  margin: 0 auto;
}

.global-home-know {
  margin-top: 5rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 500;
  color: #1a1a18;
}

.global-home-rh-logo {
  display: inline-block;
}

.global-home-rh-logo img {
  width: min(100%, 350px);
  height: auto;
  margin: 0 auto;
}

/* ── Layout Sticky Footer (na home global somente) ── */
body:has(main > .global-home) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(main > .global-home) > #main-content {
  flex: 1;
}

/* ── Responsivo Global Home ── */
@media (max-width: 768px) {
  .global-home-rh-logo img {
    width: min(100%, 240px);
  }
}

@media (max-width: 480px) {
  .global-home-rh-logo img {
    width: min(100%, 180px);
  }
}