/* M-3 Mineral Mining and Metal Supplies cc */
:root {
  --ground: #F2EFE8;
  --sand: #E4DFD4;
  --line: #D9D3C7;
  --line-2: #C9C2B4;
  --ink: #16181A;
  --body: #3A3935;
  --muted: #5C5A54;
  --accent: #B0582A;
  --accent-text: #9A4F1F;
  --accent-on-dark: #E08A52;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
a:hover { color: #6E3814; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; padding: 20px 30px; border: 1px solid transparent; cursor: pointer; min-height: 44px; }
.btn-sm { padding: 14px 22px; font-size: 15px; gap: 10px; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #000; color: var(--ground); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #944620; color: #fff; }
.btn-block { width: 100%; height: 60px; font-size: 17px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.wordmark { display: flex; flex-direction: column; gap: 3px; font-family: 'Montserrat', sans-serif; font-weight: 300; text-transform: uppercase; font-size: 15px; letter-spacing: 2.5px; line-height: 1.1; }
.wordmark b { font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 40px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--accent-text); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--ink); background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); display: flex; gap: 16px; align-items: center; }
.eyebrow .rule { width: 32px; height: 2px; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8.4vw, 120px); line-height: 0.9; letter-spacing: -1px; text-transform: uppercase; max-width: 1180px; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px 80px; flex-wrap: wrap; }
.lede { font-size: 21px; line-height: 1.55; color: var(--body); max-width: 620px; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Banner */
.banner { margin: 0; position: relative; height: 320px; overflow: hidden; background: #26292C; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner figcaption { position: absolute; left: 0; right: 0; bottom: 32px; display: flex; flex-direction: column; gap: 8px; color: var(--ground); }
.banner .mono { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--line); }
.banner-line { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; text-transform: uppercase; }

/* Facts */
.facts { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1440px; margin: 0 auto; }
.fact { padding: 36px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.fact:first-child { padding-left: var(--gutter); }
.fact:last-child { border-right: 0; padding-right: var(--gutter); }
.fact-big { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; color: var(--ink); }
.fact-big.accent { color: var(--accent); }

/* Sections */
.section { padding-top: 128px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 64px; }
.section-tight-top { padding-top: 0; gap: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 80px; flex-wrap: wrap; }
.section-head > div { display: flex; flex-direction: column; gap: 20px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-text); }
.section h2, .contact h2 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5vw, 72px); line-height: 0.95; text-transform: uppercase; max-width: 760px; }
.h2-wide { max-width: none !important; width: 100%; line-height: 1 !important; letter-spacing: 0.5px; white-space: normal; overflow-wrap: break-word; }
.aside { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 440px; }

/* Supply cards */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; min-height: 360px; }
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1; }
.card p { font-size: 16px; line-height: 1.6; color: var(--body); flex-grow: 1; }
.arrow-link { font-weight: 600; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 40px 48px 0; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; border-right: 0; }
.step-num { font-family: var(--display); font-size: 88px; font-weight: 700; line-height: 1; color: var(--line); }
.steps h3 { font-size: 22px; font-weight: 600; }
.steps p { font-size: 17px; line-height: 1.6; color: var(--body); }

/* Principle */
.principle { background: var(--ink); color: var(--ground); }
.principle-inner { padding-top: 112px; padding-bottom: 112px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.principle-text { grid-column: span 6; display: flex; flex-direction: column; gap: 36px; }
.principle blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.2vw, 60px); line-height: 1.02; text-transform: uppercase; }
.principle p { font-size: 19px; line-height: 1.6; color: #BDB8AC; max-width: 560px; }
.principle img { grid-column: 8 / span 5; width: 100%; height: 440px; object-fit: cover; }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.team li { display: flex; flex-direction: column; gap: 6px; }
.avatar { height: 320px; margin-bottom: 14px; background: var(--sand); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 80px; color: #A8A396; }
.name { font-size: 20px; font-weight: 600; }
.role { font-size: 15px; color: var(--muted); }
.team .email { font-size: 15px; color: var(--ink); width: fit-content; overflow-wrap: anywhere; }
.since { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Contact */
.contact { background: var(--sand); }
.contact-inner { padding-top: 128px; padding-bottom: 128px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact h2 { font-size: clamp(48px, 5.5vw, 80px); }
.contact .lede { font-size: 19px; max-width: 480px; }
.kicker-dark { color: var(--accent-text); }
.details { margin: 20px 0 0; border-top: 1px solid var(--ink); }
.details > div { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.details dt { width: 120px; flex-shrink: 0; font-family: var(--mono); font-size: 13px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.details dd { margin: 0; font-size: 18px; line-height: 1.6; }
.details a { color: var(--ink); }

.quote-form { background: #fff; padding: 48px; display: flex; flex-direction: column; gap: 24px; align-self: start; }
.quote-form h3 { font-family: var(--display); font-weight: 700; font-size: 36px; text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea { font: inherit; font-size: 16px; border: 1px solid #A8A396; background: #FAF8F3; color: var(--ink); border-radius: 0; }
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-status { font-size: 15px; line-height: 1.5; color: var(--body); }

/* Footer */
.site-footer { background: var(--ink); color: #BDB8AC; font-size: 14px; }
.footer-inner { padding-top: 48px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { color: #BDB8AC; text-decoration: none; }
.footer-nav a:hover { color: var(--ground); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-nav { gap: 28px; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact:first-child, .fact:last-child { padding: 28px var(--gutter); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .principle-text, .principle img { grid-column: 1 / -1; }
  .principle img { height: auto; aspect-ratio: 3 / 2; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 76px; }
  .header-inner { height: 68px; }
  .brand img { width: 38px; height: 38px; }
  .wordmark { font-size: 11px; letter-spacing: 1.5px; }
  .hero { padding-top: 40px; padding-bottom: 48px; gap: 24px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
  .hero h1 { font-size: 44px; letter-spacing: 0; overflow-wrap: break-word; }
  .lede { font-size: 17px; }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; }
  .banner { height: 240px; }
  .banner figcaption { bottom: 18px; }
  .banner .mono { display: none; }
  .banner-line { font-size: 22px; }
  .fact-big { font-size: 30px; }
  .fact { font-size: 13px; }
  .section { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .section-tight-top { padding-top: 0; }
  .aside { font-size: 15px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 0; padding: 24px 20px; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child, .steps li:last-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-num { font-size: 44px; color: var(--line-2); }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 15px; }
  .principle-inner { padding-top: 64px; padding-bottom: 64px; }
  .principle p { font-size: 16px; }
  .team { gap: 20px 12px; }
  .avatar { height: 160px; font-size: 48px; margin-bottom: 8px; }
  .name { font-size: 16px; }
  .role { font-size: 13px; }
  .team .email { font-size: 12px; }
  .contact-inner { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .details > div { flex-direction: column; gap: 4px; padding: 16px 0; }
  .details dt { font-size: 11px; padding-top: 0; }
  .details dd { font-size: 16px; }
  .quote-form { padding: 24px 20px; gap: 18px; }
  .quote-form h3 { font-size: 28px; }
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding-top: 32px; padding-bottom: 32px; }
}
