/* ==========================================================================
   EMOL — Consultoria em Mineração
   Design system compartilhado
   ========================================================================== */

@font-face {
  font-family: "Harabara Mais";
  src: url("../assets/emol-font.otf") format("opentype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy-900: #02252f;
  --navy-800: #033140;
  --navy-700: #0a3d4d;
  --navy-600: #0f4a5c;
  --gold-600: #b8860b;
  --gold-500: #c9a227;
  --gold-400: #e6c15a;
  --gold-grad: linear-gradient(135deg, #b8860b 0%, #e6c15a 50%, #a9781f 100%);
  --text-100: #f4f1ea;
  --text-300: #cdd8dc;
  --text-500: #90a6ac;
  --line: rgba(230, 193, 90, 0.18);

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 8px;
  --nav-h: 74px;

  --head: "Harabara Mais", "Montserrat", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-weight: 400;
  background: var(--navy-800);
  color: var(--text-300);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--text-100);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

::selection { background: rgba(230, 193, 90, 0.28); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { position: relative; }

.section-pad { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.alt { background: var(--navy-900); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
}

/* eyebrow / label */
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 20ch;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-300);
  max-width: 60ch;
}

.text-gold { color: var(--gold-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-grad);
  color: #05242e;
  box-shadow: 0 8px 24px -12px rgba(230, 193, 90, 0.55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(230, 193, 90, 0.7);
}
.btn-outline {
  border-color: rgba(230, 193, 90, 0.4);
  color: var(--gold-400);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold-400);
  background: rgba(230, 193, 90, 0.06);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap .25s ease;
}
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover { gap: 0.85rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 49, 64, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-300);
  position: relative;
  padding: 0.3rem 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold-grad);
  transition: width .28s ease;
}
.nav-links a:hover { color: var(--text-100); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-400); }

.nav-cta { display: flex; align-items: center; gap: 1.2rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-100);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links.desktop, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--navy-900);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 2.5rem var(--pad);
  gap: 0.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--head);
  font-size: 1.6rem;
  color: var(--text-100);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.active { color: var(--gold-400); }
.mobile-menu .btn { margin-top: 1.6rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(230, 193, 90, 0.10) 0%, rgba(230, 193, 90, 0.03) 35%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--navy-800) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 16ch;
  margin-bottom: 1.6rem;
}
.hero .lead { margin-bottom: 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }

/* page hero (interior pages, shorter) */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 60vw;
  max-width: 1000px; max-height: 600px;
  background: radial-gradient(ellipse, rgba(230, 193, 90, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
  margin-bottom: 1.4rem;
}

/* ==========================================================================
   CREDIBILITY STRIP
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--navy-800);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}
.alt .stat { background: var(--navy-900); }
.stat .num {
  font-family: var(--head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat .label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-500);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GENERIC SECTION HEADER
   ========================================================================== */
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .lead { margin-top: 1.3rem; }

/* two-column intro */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.card {
  background: var(--navy-700);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(230,193,90,0.5), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--navy-600);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.7);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(230, 193, 90, 0.08);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--gold-400); fill: none; }

.card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.7rem;
  line-height: 1.2;
}
.card .card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: block;
}
.card p { font-size: 0.98rem; color: var(--text-300); }

.card ul {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.96rem;
  color: var(--text-300);
  line-height: 1.5;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-grad);
}

/* full service block (servicos page) */
.service-block { }
.service-block .card-icon { margin-bottom: 1.3rem; }

/* ==========================================================================
   QUOTE / PURPOSE
   ========================================================================== */
.quote-block {
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
}
.quote-block .mark {
  font-family: var(--head);
  font-size: 4rem;
  color: var(--gold-500);
  line-height: 0.5;
  opacity: 0.6;
  display: block;
  margin-bottom: 1.5rem;
}
.quote-block blockquote {
  font-family: var(--head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  color: var(--text-100);
  max-width: 24ch;
  margin-inline: auto;
}
.quote-block blockquote em { color: var(--gold-400); font-style: italic; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }

.partner {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  transition: transform .3s ease, box-shadow .3s ease;
}
.partner:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.7); }
.partner-head {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 1.6rem;
}
.monogram {
  flex-shrink: 0;
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head);
  font-size: 1.5rem;
  color: var(--gold-400);
  background: rgba(230,193,90,0.06);
  border: 1.5px solid;
  border-image: var(--gold-grad) 1;
  border-radius: 50%;
  position: relative;
}
/* fallback ring (border-image + radius quirk) */
.monogram {
  background:
    linear-gradient(var(--navy-700), var(--navy-700)) padding-box,
    var(--gold-grad) border-box;
  border: 2px solid transparent;
}
.partner-head h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.partner-head .role {
  font-size: 0.86rem;
  color: var(--gold-400);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
.partner .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.86rem;
  color: var(--text-500);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.partner .meta a { color: var(--text-300); transition: color .2s; }
.partner .meta a:hover { color: var(--gold-400); }
.partner .meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.partner p { font-size: 0.98rem; margin-bottom: 1.3rem; }

.partner .block-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.partner .cv { margin-bottom: 1.3rem; }
.partner .cv:last-child { margin-bottom: 0; }
.partner .cv p { font-size: 0.94rem; color: var(--text-300); margin-bottom: 0; }

/* ==========================================================================
   PROCESS TRACK
   ========================================================================== */
.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  counter-reset: step;
}
@media (max-width: 860px) { .track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .track { grid-template-columns: 1fr; } }
.step {
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.step .step-num {
  font-family: var(--head);
  font-size: 0.9rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; color: var(--text-300); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.2rem);
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 2.8rem);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-600);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.7);
}
.contact-card .role {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.contact-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.contact-card .city {
  font-size: 0.9rem;
  color: var(--text-500);
  margin-bottom: 1.6rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.contact-lines { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.8rem; }
.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--text-100);
  transition: color .2s;
}
.contact-lines a:hover { color: var(--gold-400); }
.contact-lines svg { width: 18px; height: 18px; stroke: var(--gold-400); fill: none; flex-shrink: 0; }
.contact-card .btn { width: 100%; }

.contact-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(230,193,90,0.03);
}
.contact-note p { color: var(--text-300); }
.contact-note strong { color: var(--gold-400); font-weight: 600; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band .wrap { max-width: 760px; }
.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.3rem;
}
.cta-band p { margin-bottom: 2.3rem; font-size: 1.1rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 2.2rem; } }
.footer-brand img { height: 44px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.95rem; color: var(--text-500); max-width: 42ch; }
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col li { font-size: 0.94rem; color: var(--text-300); transition: color .2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-500); }
.forja-seal {
  font-size: 0.78rem;
  color: var(--text-500);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color .2s;
}
.forja-seal:hover { color: var(--gold-400); }
.forja-seal span { color: #ed7b3a; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
