/* Perach Minerals — institutional trading site */

:root {
  --navy: #0B1E33;
  --navy-2: #132C48;
  --slate: #3A4550;
  --white: #FFFFFF;
  --offwhite: #F7F8FA;
  --border: #D9DCE1;
  --copper: #B5651D;
  --copper-hover: #C77B3D;
  --muted: #8B96A3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
  margin: 0;
}

a { color: var(--copper); text-decoration: none; }
a:hover { color: #8f4e16; }

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

.container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 12px 0;
}

/* Nav */
.pm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.pm-nav-brand { display: flex; align-items: center; gap: 12px; }
.pm-nav-brand img { height: 34px; width: auto; }
.pm-nav-brand span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.pm-nav-links { display: flex; align-items: center; gap: 32px; }
.pm-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.pm-nav-link:hover { color: var(--navy); }
.pm-nav-link.active { color: var(--copper); border-bottom-color: var(--copper); }
.pm-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.pm-nav-toggle svg { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-hover); border-color: var(--copper-hover); color: #fff; }
.btn-primary.small { padding: 10px 20px; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Hero */
.pm-hero { position: relative; overflow: hidden; background: var(--navy); }
.pm-hero-art { position: absolute; right: 0; top: 0; height: 100%; width: 62%; display: block; }
.pm-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #0B1E33 0%, #0B1E33 38%, rgba(11,30,51,0.62) 58%, rgba(11,30,51,0.18) 100%);
}
.pm-hero-content {
  position: relative; z-index: 2;
  padding: 120px 32px;
  max-width: 720px;
}
.pm-hero-content h1 { color: #fff; font-size: 52px; line-height: 1.12; margin-bottom: 20px; }
.pm-hero-content p { color: #C7D0DB; font-size: 18px; line-height: 1.6; margin: 0 0 32px 0; max-width: 560px; }
.pm-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero commodity carousel */
.pm-hero-carousel {
  position: absolute; z-index: 2;
  top: 50%; right: 20%;
  width: 320px; height: 380px;
  transform: translateY(-50%);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--navy);
}
.pm-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: pmHeroFade 28s infinite;
}
.pm-hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  animation: pmHeroZoom 28s infinite;
  animation-timing-function: linear;
}
.pm-hero-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(11,30,51,0) 0%, rgba(11,30,51,0.92) 100%);
}
.pm-hero-slide-caption .tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); margin-bottom: 4px; }
.pm-hero-slide-caption .name { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.pm-hero-slide:nth-child(1) { animation-delay: 0s; }
.pm-hero-slide:nth-child(1) img { animation-delay: 0s; }
.pm-hero-slide:nth-child(2) { animation-delay: 4s; }
.pm-hero-slide:nth-child(2) img { animation-delay: 4s; }
.pm-hero-slide:nth-child(3) { animation-delay: 8s; }
.pm-hero-slide:nth-child(3) img { animation-delay: 8s; }
.pm-hero-slide:nth-child(4) { animation-delay: 12s; }
.pm-hero-slide:nth-child(4) img { animation-delay: 12s; }
.pm-hero-slide:nth-child(5) { animation-delay: 16s; }
.pm-hero-slide:nth-child(5) img { animation-delay: 16s; }
.pm-hero-slide:nth-child(6) { animation-delay: 20s; }
.pm-hero-slide:nth-child(6) img { animation-delay: 20s; }
.pm-hero-slide:nth-child(7) { animation-delay: 24s; }
.pm-hero-slide:nth-child(7) img { animation-delay: 24s; }
@keyframes pmHeroFade {
  0% { opacity: 0; }
  2% { opacity: 1; }
  12.5% { opacity: 1; }
  14.28% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes pmHeroZoom {
  0% { transform: scale(1); }
  14.28% { transform: scale(1.08); }
  100% { transform: scale(1.08); }
}
.pm-hero-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  display: flex; gap: 7px;
}
.pm-hero-dots span { position: relative; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.pm-hero-dots span::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--copper); opacity: 0;
  animation: pmHeroFade 28s infinite;
}
.pm-hero-dots span:nth-child(1)::after { animation-delay: 0s; }
.pm-hero-dots span:nth-child(2)::after { animation-delay: 4s; }
.pm-hero-dots span:nth-child(3)::after { animation-delay: 8s; }
.pm-hero-dots span:nth-child(4)::after { animation-delay: 12s; }
.pm-hero-dots span:nth-child(5)::after { animation-delay: 16s; }
.pm-hero-dots span:nth-child(6)::after { animation-delay: 20s; }
.pm-hero-dots span:nth-child(7)::after { animation-delay: 24s; }
@media (prefers-reduced-motion: reduce) {
  .pm-hero-slide, .pm-hero-slide img, .pm-hero-dots span::after { animation: none; }
  .pm-hero-slide:first-child { opacity: 1; }
  .pm-hero-dots span:first-child::after { opacity: 1; }
}

/* Page header (non-home pages) */
.pm-page-header { padding: 72px 32px 40px; max-width: 900px; margin: 0 auto; }
.pm-page-header h1 { font-size: 38px; margin-bottom: 16px; }
.pm-page-header p { font-size: 16px; line-height: 1.7; color: var(--slate); margin: 0; }

/* Trust strip */
.pm-trust {
  padding: 56px 32px;
  background: var(--offwhite);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pm-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 32px;
  margin-top: 20px;
  max-width: 1248px;
  margin-left: auto;
  margin-right: auto;
}
.pm-trust-item { display: flex; align-items: flex-start; gap: 14px; }
.pm-trust-item svg { color: var(--navy); flex-shrink: 0; }
.pm-trust-item strong { display: block; font-weight: 600; color: var(--navy); font-size: 14px; }
.pm-trust-item span { display: block; font-size: 13px; color: var(--slate); margin-top: 2px; }

/* Sections */
.pm-section { padding: 80px 32px; max-width: 1248px; margin: 0 auto; }
.pm-section.bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--offwhite); }
.pm-section.bordered > .pm-section-inner { max-width: 1248px; margin: 0 auto; }
.pm-split { display: flex; gap: 64px; align-items: flex-start; }
.pm-split.center { align-items: center; }

/* Mineral tiles (home teaser) */
.pm-tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.pm-tile {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
}
.pm-tile.cta { justify-content: center; align-items: center; border-style: dashed; border-color: var(--copper); text-align: center; }
.pm-badge {
  width: 52px; height: 52px; border-radius: 10px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: var(--copper);
  flex-shrink: 0;
}
.pm-tile-name { font-weight: 600; color: var(--navy); font-size: 15px; }
.pm-tile-tag { font-size: 13px; color: var(--slate); }

/* Mineral spec cards (metals desk) */
.pm-card-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.pm-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}
.pm-card-head { display: flex; align-items: center; gap: 14px; }
.pm-card-head .name { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); font-size: 16px; }
.pm-row { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--border); }
.pm-row-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pm-row-value { font-size: 13.5px; color: var(--slate); line-height: 1.5; }
.pm-disclaimer { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 24px 0 0; border-top: 1px solid var(--border); padding-top: 20px; }

/* CTA banner */
.pm-cta-banner {
  background: var(--navy);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pm-cta-banner h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.pm-cta-banner p { font-size: 14px; color: #C7D0DB; margin: 0; }

/* Callout box */
.pm-callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--copper);
  padding: 28px 32px;
}
.pm-callout.dark { background: var(--navy); border-left-color: var(--copper); }
.pm-callout p { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.6; margin: 0; }
.pm-callout.dark p { color: #fff; }

/* Forms */
.field { margin-bottom: 24px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; display: block; }
.field .req { color: var(--copper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--slate);
  background: #fff;
}
.input:focus, select.input:focus, textarea.input:focus { outline: none; border-color: var(--copper); }
textarea.input { resize: vertical; }
.qty-row { display: flex; gap: 10px; }
.qty-row .input { flex: 1; }
.toggle-group { display: flex; max-width: 320px; }
.toggle-opt {
  flex: 1; text-align: center; padding: 12px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; background: #fff; color: var(--slate);
}
.toggle-opt:first-child { border-right: none; }
.toggle-opt.selected { background: var(--copper); color: #fff; border-color: var(--copper); }
.form-card { border: 1px solid var(--border); padding: 44px; }
.form-section-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); font-size: 15px;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.form-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-status { display: none; padding: 14px 18px; border-radius: 2px; font-size: 14px; margin-bottom: 24px; }
.form-status.success { display: block; background: #EAF4EC; color: #245C34; border: 1px solid #BFE0C6; }
.form-status.error { display: block; background: #FBEAEA; color: #7A2A2A; border: 1px solid #F0C4C4; }

/* Footer */
.pm-footer { background: var(--navy); padding: 56px 32px 28px; }
.pm-footer-inner { max-width: 1248px; margin: 0 auto; }
.pm-footer-top { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #1F3A57; flex-wrap: wrap; }
.pm-footer-col { flex: 1; min-width: 200px; }
.pm-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pm-footer-brand img { height: 28px; width: auto; }
.pm-footer-brand span { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: #fff; }
.pm-footer-col p { font-size: 13px; color: #8FA0B5; line-height: 1.7; margin: 0; max-width: 340px; }
.pm-footer-heading { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8FA0B5; margin-bottom: 14px; }
.pm-footer-col a { display: block; color: #C7D0DB; font-size: 13px; margin-bottom: 10px; }
.pm-footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.pm-footer-bottom p { font-size: 12px; color: #6E829B; line-height: 1.6; margin: 0; }

/* Responsive */
@media (max-width: 1150px) {
  .pm-hero-carousel { display: none; }
}
@media (max-width: 900px) {
  .pm-nav-links { display: none; }
  .pm-nav > .btn { display: none; }
  .pm-nav-toggle { display: block; }
  .pm-hero-content { padding: 80px 24px; }
  .pm-hero-content h1 { font-size: 36px; }
  .pm-hero-art { width: 100%; opacity: 0.35; }
  .pm-hero-scrim { background: linear-gradient(180deg, rgba(11,30,51,0.5) 0%, #0B1E33 70%); }
  .pm-trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pm-tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pm-split { flex-direction: column; gap: 32px; }
  .pm-card-row { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .pm-footer-top { flex-direction: column; }
  .form-card { padding: 28px; }
  .pm-section, .pm-page-header, .pm-trust, .pm-nav, .pm-footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 560px) {
  .pm-tile-grid { grid-template-columns: 1fr; }
  .pm-trust-grid { grid-template-columns: 1fr; }
  .pm-hero-content h1 { font-size: 30px; }
  .pm-cta-banner { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav panel */
.pm-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.pm-nav-mobile.open { display: flex; }
.pm-nav-mobile a { padding: 10px 0; font-size: 15px; color: var(--slate); border-bottom: 1px solid var(--border); }
.pm-nav-mobile a:last-child { border-bottom: none; }
