/* =========================================================
   MDINIZ Human Capital Solutions — estilo compartilhado
   ========================================================= */

:root {
  --ink: #1b2230;
  --ink-soft: #5b6472;
  --cream: #f6f5f1;
  --panel: #eef1ee;
  --card-bg: #ffffff;
  --border-soft: #dfe2dc;

  --navy: #1c4576;
  --navy-deep: #102c52;
  --teal: #0a6f86;
  --teal-soft: #cfe6e9;

  --max-width: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0;
}

section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--panel); }
section.dark {
  background: var(--navy-deep);
  color: #eef1ee;
}
section.dark h1, section.dark h2, section.dark h3 { color: #ffffff; }
section.dark p { color: #b9c2ce; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 15.5px; margin: 0; text-align: center; }
section.dark .section-head p { color: #b9c2ce; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, 0.94);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
}
.brand-text span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.links a:hover { color: var(--navy); }
.links a.active { color: var(--navy); border-bottom-color: var(--teal); }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--teal); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-deep); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { background: transparent; color: var(--navy-deep); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--panel); }
.btn-on-dark { background: #fff; color: var(--navy-deep); }
.btn-on-dark:hover { background: var(--teal-soft); }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.16; margin-bottom: 20px; }
.hero p.lede { font-size: 16.5px; color: var(--ink-soft); max-width: 48ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.stat-row { display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); padding-top: 26px; }
.stat b {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--navy-deep);
  line-height: 1;
}
.stat span { font-size: 12.5px; color: var(--ink-soft); }

.hero-panel {
  background: var(--navy-deep);
  border-radius: 20px;
  padding: 38px 32px;
  color: #fff;
  position: relative;
}
.hero-panel::before {
  content: "";
  position: absolute;
  top: 18px; right: 18px; bottom: 18px; left: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  pointer-events: none;
}
.hero-panel h3 { color: #fff; font-size: 19px; margin-bottom: 18px; }
.hero-panel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #d6dee6;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}
.hero-panel-list li:last-child { border-bottom: none; padding-bottom: 0; }
.hero-panel-list svg { width: 15px; height: 15px; color: var(--teal-soft); flex-shrink: 0; margin-top: 2px; }

/* ---------- Feature / value cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.v-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.v-card .v-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  margin-bottom: 18px;
}
.v-card .v-icon svg { width: 18px; height: 18px; }
.v-card h3 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.v-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Tags / segments ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy-deep);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

.mini-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 22px;
  padding: 52px 44px;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 12px; }
.cta-banner p { color: #b9c2ce; max-width: 52ch; margin: 0 auto 26px; font-size: 15px; text-align: center; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-deep);
  color: #b9c2ce;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 18px; text-transform: uppercase; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand img { height: 38px; width: auto; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand-text b { font-family: 'Playfair Display', serif; font-size: 18px; color: #fff; }
.footer-brand-text span { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; color: var(--teal-soft); text-transform: uppercase; }
.footer-brand p { font-size: 13.5px; color: #9aa5b2; max-width: 30ch; margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 13.5px; color: #b9c2ce; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: #b9c2ce; margin-bottom: 10px; }
.footer-contact-item svg { width: 15px; height: 15px; color: var(--teal-soft); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-size: 12.5px;
  color: #7d8a99;
}
.footer-bottom a { color: #b9c2ce; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .system-link {
  color: var(--teal-soft);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom .system-link:hover { color: #fff; }

/* ---------- Forms ---------- */
form.mdiniz-form {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 38, 76, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-msg { font-size: 13.5px; padding: 10px 14px; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #d9ece7; color: #0c3d33; }
.form-msg.err { background: #f4dede; color: #7a2d2d; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-soft);
    gap: 14px;
  }
  .links.open .nav-cta { display: inline-flex; }
  section { padding: 56px 0; }
  .cards-grid, .cards-grid.cols-3, .cards-grid.cols-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-row { gap: 24px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a { transition: none; }
}
