/* ============================================================
   MERCOR METALS — style.css
   Palette: navy #0F172A · slate #334155 · copper #B45309 · white
   Type: Manrope (display) · Inter (body)
   ============================================================ */

:root {
  --navy: #0F172A;
  --slate: #334155;
  --muted: #64748B;
  --copper: #B45309;
  --copper-dark: #92400E;
  --line: #E2E8F0;
  --bg-soft: #F8FAFC;
  --white: #FFFFFF;
  --max: 1140px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-dark); }

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

/* ---------- Signature: copper slant ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 10px;
  background: var(--copper);
  transform: skewX(-24deg);
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 82px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--copper); }
.main-nav a[aria-current="page"] {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.header-tools { display: flex; align-items: center; gap: 18px; }

.lang-select {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}
.lang-select:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--copper); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { border-color: var(--copper); color: var(--copper); }
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 100px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 14ch;
}
.hero-rule {
  width: 92px;
  height: 14px;
  background: var(--copper);
  transform: skewX(-24deg);
  margin: 34px 0;
}
.hero p {
  font-size: 20px;
  max-width: 56ch;
  color: var(--slate);
}
.hero-ctas { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 48px;
}

/* Three columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.col h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 3px solid var(--copper);
}

/* Products grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.product-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 26px 34px;
  background: var(--white);
  color: inherit;
  display: block;
}
.product-cell:hover { background: var(--bg-soft); color: inherit; }
.product-cell .symbol {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--copper);
  display: block;
  margin-bottom: 14px;
}
.product-cell .name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* Why list */
.why-list { list-style: none; max-width: 720px; }
.why-list li {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  padding: 22px 0 22px 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  width: 18px;
  height: 8px;
  background: var(--copper);
  transform: skewX(-24deg);
}

/* ---------- Inner pages ---------- */
.page-header { padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--navy);
  max-width: 18ch;
}
.lede { font-size: 20px; max-width: 62ch; }
.lede p + p { margin-top: 22px; }

/* Product detail sections */
.product-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.product-section:last-child { border-bottom: none; }
.product-section .tag {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--copper);
  text-transform: uppercase;
  padding-top: 4px;
}
.product-section h2 {
  font-size: 28px;
  margin-bottom: 14px;
}
.product-section p { max-width: 60ch; }

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 44px; max-width: 860px; }
.benefit {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  background: var(--white);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; }
.contact-channels dt {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 28px;
}
.contact-channels dt:first-child { margin-top: 0; }
.contact-channels dd {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}
.contact-channels dd a { color: var(--navy); }
.contact-channels dd a:hover { color: var(--copper); }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: var(--copper);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-status {
  margin-top: 18px;
  font-weight: 600;
  display: none;
  padding: 14px 16px;
  border-radius: 4px;
}
.form-status.success { display: block; background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.form-status.error { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); padding: 80px 0; }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 30px;
  max-width: 24ch;
}
.cta-band .btn-primary { background: var(--copper); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.footer-brand .f-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.footer-brand .f-tag { color: var(--muted); margin-top: 6px; font-size: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--slate);
}
.footer-links a:hover { color: var(--copper); }
.footer-contact { font-size: 15px; color: var(--muted); }
.footer-contact a { color: var(--slate); font-weight: 600; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
/* Footer logo */
.f-logo { height: 88px; width: auto; display: block; }
@media (max-width: 820px) { .f-logo { height: 72px; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .hero { padding: 70px 0 64px; }
  .section { padding: 64px 0; }
  .product-section { grid-template-columns: 1fr; gap: 10px; padding: 40px 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand img { height: 54px; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

/* ============================================================
   v2 additions — imagery & modern layout
   ============================================================ */

/* Hero with full-width image */
.hero-image {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.62) 0%, rgba(15,23,42,0.46) 55%, rgba(15,23,42,0.82) 100%),
    url("../assets/img/hero.jpg") center / cover no-repeat;
  padding: 130px 0 120px;
}
.hero-image h1 { color: var(--white); }
.hero-image p { color: #CBD5E1; }
.hero-image .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.hero-image .btn-outline:hover { border-color: var(--copper); color: var(--copper); background: transparent; }

/* Intro lede on homepage */
.intro-lede { margin-bottom: 56px; }

/* Three cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.card-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 3px solid var(--copper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.card-body p { font-size: 15.5px; flex: 1; }
.card-link {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--copper);
}
.card-link::after { content: " \2192"; }

/* Markets strip */
.markets-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 26px 0;
}
.markets-inner { display: flex; align-items: baseline; gap: 14px 36px; flex-wrap: wrap; }
.markets-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.markets-list {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

/* About 60/40 split */
.about-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: stretch;
}
.about-media { position: relative; min-height: 460px; }
.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about-media::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -14px;
  width: 96px;
  height: 14px;
  background: var(--copper);
  transform: skewX(-24deg);
}

/* Product rows with image */
.product-section { grid-template-columns: 320px 1fr; align-items: center; }
.product-media { border: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-section .tag { padding-top: 0; margin-bottom: 10px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.product-section .btn { margin-top: 20px; }

/* Grading utility — apply to any real photo added later so it
   matches the muted blue/grey + copper palette of the artwork */
.img-graded { filter: grayscale(0.35) saturate(0.72) contrast(1.03) brightness(0.96); }
.graded-wrap { position: relative; }
.graded-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #2C3A52;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 44px; }
  .about-media { min-height: 300px; }
}
@media (max-width: 820px) {
  .hero-image { padding: 84px 0 76px; }
  .product-section { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .product-media { max-width: 480px; }
}
