/* ==========================================================================
   MRCS Consultoria — Design System
   Paleta: Azul-marinho #10243A · Branco #FFFFFF · Dourado #D4AF65 · Cinza-claro #F4F5F7
   ========================================================================== */

:root {
  --navy: #10243A;
  --navy-700: #16324f;
  --navy-600: #1c3d5e;
  --navy-soft: #17324c;
  --gold: #D4AF65;
  --gold-dark: #b8934c;
  --white: #FFFFFF;
  --gray-light: #F4F5F7;
  --gray-100: #eceef1;
  --gray-300: #d7dbe1;
  --gray-500: #8a94a3;
  --gray-700: #4b5563;
  --ink: #1a2430;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 58, 0.06), 0 1px 3px rgba(16, 36, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 36, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 36, 58, 0.16);
  --container: 1180px;
  --container-narrow: 800px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-sans); font-weight: 700; color: var(--gold-dark); }
p { margin: 0 0 1.1em; color: var(--gray-700); }
ul, ol { color: var(--gray-700); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); display: inline-block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--gray-100);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 961px) {
    .site-header { background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(8px); }
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--font-sans); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; color: var(--gold-dark); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--navy); position: relative; padding: 6px 0; }
.nav__links a:hover { color: var(--gold-dark); }
.nav__links > li { position: relative; }
.nav__links-cta { display: none; }
.has-dropdown > a::after { content: "▾"; font-size: 0.7em; margin-left: 5px; opacity: 0.6; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 10px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  border: 1px solid var(--gray-100);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius); font-size: 0.9rem; }
.dropdown a:hover { background: var(--gray-light); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: all 0.2s ease; }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__cta-btn { display: none; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 24%;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    z-index: 150;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--white); width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropdown { position: static; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 0 14px; border: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,0.75) !important; padding: 10px 0 !important; border-bottom: none !important; }
  .nav__links-cta { display: block; border-bottom: none !important; margin-top: 14px; }
  .nav__links-cta a { display: inline-flex; width: auto; padding: 12px 26px !important; border: none !important; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .nav { padding: 14px 20px; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, #0c1b2c 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow { color: var(--gold); }
.hero__eyebrow::before { background: var(--gold); }
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero__visual svg { width: 100%; height: 100%; display: block; }
.hero__stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero__stats div strong { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold); }
.hero__stats div span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #132a42 100%);
  color: var(--white);
  padding: 72px 0 64px;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero h1 { color: var(--white); margin-bottom: 0.4em; }
.page-hero p.lead { color: rgba(255,255,255,0.82); max-width: 62ch; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--gold); }

/* ---- Sections ---- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.bg-light { background: var(--gray-light); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.78); }

/* ---- Cards / Grid ---- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--navy);
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--navy); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 16px; }
.card__link { font-size: 0.85rem; font-weight: 700; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "→"; transition: transform 0.15s ease; }
.card:hover .card__link::after { transform: translateX(3px); }

/* ---- Methodology steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 34px 26px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  opacity: 0.85;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; margin: 0; }

/* ---- Testimonial / stats strip ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip strong { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--gold); }
.stat-strip span { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* ---- Insight / article cards ---- */
.insight-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); transition: box-shadow 0.2s ease, transform 0.2s ease; height: 100%; }
.insight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.insight-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.insight-card__body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.insight-card__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.insight-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.insight-card p { font-size: 0.89rem; flex: 1; }
.insight-card__meta { font-size: 0.78rem; color: var(--gray-500); margin-top: 14px; display: flex; justify-content: space-between; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-pill { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gray-300); font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.filter-pill.is-active, .filter-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- Article page ---- */
.article-layout { display: grid; grid-template-columns: 2.1fr 0.9fr; gap: 64px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-body h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article-body h3 { margin-top: 1.3em; font-size: 1.15rem; }
.article-body p, .article-body li { font-size: 1.02rem; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
}
.article-body a { color: var(--gold-dark); text-decoration: underline; text-decoration-color: var(--gray-300); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--gold-dark); }
.article-toc { background: var(--gray-light); border-radius: var(--radius-lg); padding: 22px 24px; margin: 2em 0; }
.article-toc h4 { margin-bottom: 12px; color: var(--navy); }
.article-toc ol { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.article-toc li { margin-bottom: 6px; }
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 24px; flex-wrap: wrap; }
.article-meta .cat-tag { background: var(--gray-light); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin: 28px 0 40px; box-shadow: var(--shadow-sm); }
.ad-slot {
  background: var(--gray-light);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 2.4em 0;
}
.sidebar-box { background: var(--gray-light); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 24px; }
.sidebar-box h4 { color: var(--navy); margin-bottom: 14px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 12px; font-size: 0.88rem; }
.sidebar-box a:hover { color: var(--gold-dark); }
.references { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--gray-100); }
.references h4 { color: var(--navy); }
.references ol { font-size: 0.88rem; padding-left: 1.2em; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--gray-light); border-radius: var(--radius-lg); padding: 20px 22px; margin-top: 3em; }
.author-box__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); flex: none; }
.author-box strong { color: var(--navy); display: block; font-size: 0.95rem; }
.author-box span { font-size: 0.82rem; color: var(--gray-500); }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,101,0.18); }
.field small { font-size: 0.76rem; color: var(--gray-500); }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---- Contact info blocks ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 36px 32px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item svg { flex: none; width: 20px; height: 20px; stroke: var(--gold); margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 0.9rem; }
.contact-info-item span { font-size: 0.86rem; color: rgba(255,255,255,0.7); }
.placeholder-flag { display: inline-block; background: rgba(212,175,101,0.18); color: var(--gold); font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; margin-left: 8px; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 620px; margin: 0 auto;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px 24px; display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { color: rgba(255,255,255,0.8); font-size: 0.86rem; margin: 0; flex: 1; min-width: 220px; }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ---- Misc utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--gray-100); margin: 64px 0; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag { font-size: 0.78rem; background: var(--gray-light); color: var(--navy); padding: 5px 13px; border-radius: 999px; }
.legal-content h2 { margin-top: 1.8em; }
.legal-content h3 { margin-top: 1.2em; }
.legal-content p, .legal-content li { font-size: 0.96rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero__grid { grid-template-columns: 1fr; padding: 64px 20px 48px; gap: 40px; }
  .hero__stats { gap: 20px; }
  .footer-grid { text-align: left; }
}
