/* ============================================================
   KR Mining — Design System
   Paleta extraída da identidade KR Capital / apresentação 2026
   ============================================================ */

:root {
  --ink: #0E1B30;          /* navy profundo — fundos escuros */
  --ink-2: #13223A;        /* painéis sobre escuro */
  --navy: #1F3864;         /* navy da marca — títulos, logo */
  --steel: #2A5081;        /* azul secundário */
  --bronze: #9F7139;       /* acento bronze */
  --bronze-deep: #65441E;
  --bronze-text: #8A5F2C;  /* bronze legível sobre claro */
  --gold: #CD9757;
  --gold-light: #FBD3A4;
  --porcelain: #F4F6F9;    /* fundo claro frio */
  --white: #FFFFFF;
  --body-c: #46505E;       /* texto corrido sobre claro */
  --muted: #7A8494;
  --line: #DDE3EC;
  --line-dark: rgba(255, 255, 255, 0.12);
  --seam: linear-gradient(90deg, #65441E 0%, #9F7139 22%, #FBD3A4 50%, #CD9757 78%, #65441E 100%);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-logo: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --font-sans: "Jost", "Century Gothic", "Segoe UI", sans-serif;

  --max-w: 1160px;
  --radius: 6px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body-c);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3 { margin: 0 0 0.5em; color: var(--navy); font-weight: 600; }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold-light); color: var(--ink); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* O veio dourado — assinatura da marca (barra da apresentação) */
.seam {
  height: 3px;
  background: var(--seam);
  border: 0;
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 27, 48, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .seam { height: 2px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
  line-height: 1;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.logo:hover img { opacity: 0.82; }

.site-footer .logo img { height: 36px; }

.logo-kr {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo-word {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.42rem;
  letter-spacing: 0.04em;
  color: #C6CFDD;
}

.logo:hover .logo-kr { color: var(--gold-light); }

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B9C3D4;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--white); }

.main-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
  flex: none;
}

.lang-switch button {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 6px 13px;
  background: transparent;
  color: #B9C3D4;
  border: 0;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #C9D2E0;
  overflow: hidden;
}

.hero-strata {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: clamp(90px, 13vh, 170px) 0 clamp(100px, 14vh, 180px);
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 26px;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-meta {
  margin-top: 56px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Botões ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
  color: var(--ink);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205, 151, 87, 0.28);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

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

.btn-navy:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 56, 100, 0.25);
}

/* ---------- Page hero (páginas internas) ---------- */

.page-hero {
  position: relative;
  background: var(--ink);
  color: #C9D2E0;
  overflow: hidden;
}

.page-hero .hero-strata { opacity: 0.55; }

.page-hero-inner {
  position: relative;
  padding: clamp(56px, 8vh, 92px) 0 clamp(48px, 7vh, 80px);
  max-width: 760px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero .lede { font-weight: 300; font-size: 1.1rem; margin: 0; max-width: 580px; }

/* ---------- Seções ---------- */

.section { padding: clamp(52px, 7vw, 88px) 0; }
.section.alt { background: var(--porcelain); }
.section.dark { background: var(--ink); color: #C9D2E0; }
.section.dark h2, .section.dark h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}

h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; }

.section .eyebrow { color: var(--bronze-text); margin-bottom: 12px; }
.section.dark .eyebrow { color: var(--gold); }

.link-more {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-text);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

.link-more:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Grades e cartões ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-3.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(14, 27, 48, 0.1);
}

.card h3 { margin-top: 0; }

.card .card-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

/* Pilares (quem somos) */
.pillar { border-left: 2px solid var(--gold); padding-left: 22px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { margin: 0; font-size: 0.98rem; }

/* ---------- Diagrama ponte (dupla presença) ---------- */

.bridge {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 8px;
}

/* O veio dourado atravessa o diagrama por trás dos painéis,
   aparecendo apenas no vão central que conecta os dois mercados */
.bridge::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--seam);
}

.bridge-col {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  padding: 34px 30px;
}

.bridge-col.financial { background: var(--navy); color: #C9D2E0; }
.bridge-col.mining { background: linear-gradient(160deg, var(--bronze) 0%, var(--bronze-deep) 100%); color: #F6E8D4; }

.bridge-col h3 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.bridge-col ul { list-style: none; margin: 0; padding: 0; }

.bridge-col li {
  padding: 10px 0;
  font-weight: 300;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bridge-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 2vw, 24px);
}

.bridge-node {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(205, 151, 87, 0.55);
  box-shadow: 0 10px 40px rgba(14, 27, 48, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 2;
}

.bridge-node .logo-kr { color: var(--navy); font-size: 1.7rem; }
.bridge-node .logo-word { color: var(--body-c); font-size: 1.05rem; }
.bridge-node img { width: 100px; height: auto; }

/* ---------- Processo ---------- */

.phases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }

.phase {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.phase-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.phase-1 .phase-tag { background: rgba(31, 56, 100, 0.1); color: var(--navy); }
.phase-2 .phase-tag { background: rgba(159, 113, 57, 0.13); color: var(--bronze-text); }

.phase h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }

.phase ol { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; }

.phase ol li {
  counter-increment: step;
  position: relative;
  padding: 11px 0 11px 44px;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.phase ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.phase-1 ol li::before { color: var(--steel); }
.phase-2 ol li::before { color: var(--bronze); }

.process-note {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
}

/* ---------- Oportunidades ---------- */

.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.asset-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.asset-card:nth-child(even) { border-left-color: var(--bronze); }

.asset-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.asset-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-text);
  background: rgba(159, 113, 57, 0.1);
  padding: 4px 11px;
  border-radius: 999px;
}

.asset-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

.asset-card p { font-size: 0.98rem; flex: 1; }

.asset-metrics { list-style: none; margin: 14px 0 0; padding: 0; }

.asset-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.asset-metrics .k { color: var(--muted); }
.asset-metrics .v { color: var(--navy); font-weight: 500; text-align: right; }

.nda-note {
  margin-top: 44px;
  padding: 26px 32px;
  background: var(--ink);
  border-radius: var(--radius);
  color: #C9D2E0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nda-note p { margin: 0; font-weight: 300; }

/* ---------- Equipe ---------- */

.team-member {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.team-member + .team-member { margin-top: clamp(44px, 6vw, 68px); }

.team-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.team-photo img {
  filter: grayscale(1) contrast(1.04);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}

.team-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--seam);
}

.team-member h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin-bottom: 2px; }

.team-role {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 18px;
}

/* ---------- Contato ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }

.contact-list { list-style: none; margin: 0; padding: 0; }

.contact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  font-size: 0.98rem;
}

.contact-list .k {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 18px 0 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form .btn { margin-top: 24px; }

.contact-art { border-radius: var(--radius); overflow: hidden; position: relative; }
.contact-art img { width: 100%; object-fit: cover; }

.contact-art figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #C9D2E0;
  background: linear-gradient(transparent, rgba(14, 27, 48, 0.85));
}

/* ---------- Faixa CTA ---------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band .container {
  position: relative;
  padding-top: clamp(44px, 5vw, 60px);
  padding-bottom: clamp(44px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  max-width: 560px;
  margin: 0;
}

/* ---------- Rodapé ---------- */

.site-footer { background: var(--ink); color: #93A0B4; border-top: 1px solid rgba(205, 151, 87, 0.35); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(36px, 5vw, 52px) 0 32px;
}

.site-footer .logo { margin-bottom: 18px; }

.site-footer p { font-size: 0.92rem; font-weight: 300; max-width: 340px; }

.footer-title {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 5px 0; font-size: 0.94rem; font-weight: 300; }
.site-footer a { color: #B9C3D4; }
.site-footer a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 300;
}

.site-footer > .seam { height: 4px; }

/* ---------- Revelação ao rolar ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1020px) {
  .main-nav a { letter-spacing: 0.08em; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px clamp(20px, 4vw, 40px) 24px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 12px 0; width: 100%; }

  .lang-switch { margin: 16px 0 0; }

  .grid-3, .grid-3.cols-2, .grid-3.cols-4, .asset-grid, .phases { grid-template-columns: 1fr; }

  .grid-2, .contact-grid, .team-member { grid-template-columns: 1fr; }

  .team-photo { max-width: 320px; }

  .bridge { grid-template-columns: 1fr; gap: 0; }

  .bridge::before { display: none; }

  .bridge-center { padding: 0; margin: -26px auto; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
