/* ==========================================================
   PITTICOAL — Coal Sourcing & Supply
   ========================================================== */
:root {
  --ink: #15151b;
  --ink-2: #23232b;
  --text: #3a3a42;
  --muted: #6a6a72;
  --paper: #e9e8e4;
  --paper-2: #dcdbd6;
  --paper-3: #f1f0ec;
  --white: #ffffff;
  --orange: #e8691c;
  --orange-light: #ff8a3d;
  --orange-soft: #ffb27a;
  --orange-dark: #a8470c;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1100px;
  --radius: 6px;
  --section-y: 110px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #1b1b20;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; transition: color .2s, background .2s; }
a:hover { color: var(--orange-light); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); }
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-white { background: var(--white); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

/* ---------- Eyebrow & headings ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); }
.eyebrow span {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-dark);
}
.bg-ink .eyebrow span { color: var(--orange-light); }
.eyebrow--center { display: inline-flex; }

.h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.bg-ink .h2 { color: #fff; }
.lead { font-size: 16px; line-height: 1.7; color: var(--text); }
.lead + .lead { margin-top: 18px; }
.bg-ink .lead { color: #c9c9d1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; border: none;
}
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--orange-light); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--paper-3); color: var(--ink); }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 600; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21,21,27,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner {
  max-width: 1280px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo:hover { color: #fff; }
.logo img { display: block; height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav a:not(.btn) { color: #d6d6dc; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--orange-light); }
.nav .btn { padding: 10px 18px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  overflow: hidden; background: var(--ink);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,12,16,.78) 0%, rgba(12,12,16,.38) 55%, rgba(12,12,16,.62) 100%);
}
.hero__inner {
  position: relative; max-width: 1280px; margin: 0 auto; width: 100%;
  padding: 80px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap;
}
.hero__main { flex: 1 1 520px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  border: 1px solid rgba(232,105,28,.5); background: rgba(232,105,28,.15); border-radius: 999px;
  color: var(--orange-soft); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 24px; white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-light); }
.hero h1 {
  font-weight: 900; font-size: clamp(44px, 6.5vw, 92px); line-height: .98; letter-spacing: -0.02em; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--orange-light); }
.hero__card {
  flex: 0 1 380px; padding: 28px;
  background: rgba(21,21,27,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--orange); border-radius: 8px;
}
.hero__card h2 { font-weight: 800; font-size: 24px; color: #fff; margin-bottom: 10px; }
.hero__card p { font-size: 17px; line-height: 1.55; color: #e4e4e8; margin-bottom: 24px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { background: var(--orange); }
.stats__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px var(--gutter); border-right: 1px solid rgba(21,21,27,.2); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--ink); line-height: 1; }
.stat span { display: block; font-size: 13px; font-weight: 600; color: #2a1608; margin-top: 6px; }

/* ---------- About diamond ---------- */
.diamond {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 480px; justify-self: center;
  filter: drop-shadow(0 24px 40px rgba(21,21,27,.25));
}
.diamond__frame {
  position: absolute; inset: -4%; border: 2px solid var(--orange); opacity: .7;
  transform: rotate(45deg) scale(.765);
}
.diamond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diamond img:nth-of-type(1) { clip-path: polygon(50% 1%, 49% 49%, 1% 49%); }
.diamond img:nth-of-type(2) { clip-path: polygon(51% 1%, 99% 49%, 51% 49%); }
.diamond img:nth-of-type(3) { clip-path: polygon(1% 51%, 99% 51%, 50% 99%); }

/* ---------- Focus ---------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.check {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; font-size: 14px; color: #e8e8ec;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
}
.check::before {
  content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%;
  background: rgba(232,105,28,.2); color: var(--orange-light);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; top: -16px; right: -16px; width: 45%; height: 45%;
  border-top: 3px solid var(--orange); border-right: 3px solid var(--orange);
}
.framed img {
  position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.photo-tall {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(21,21,27,.45);
}

/* ---------- Coal table ---------- */
.coal-list {
  border-top: 3px solid var(--orange); background: rgba(255,255,255,.45);
  border-radius: 0 0 8px 8px; margin-top: 40px;
}
.coal-row {
  display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.2fr) auto;
  gap: 24px; padding: 26px 20px; align-items: center;
  border-bottom: 1px solid rgba(21,21,27,.15); transition: background .2s;
}
.coal-row:hover { background: #fff; }
.coal-row h3 { font-weight: 800; font-size: 22px; color: var(--ink); }
.coal-row p { font-size: 15px; line-height: 1.6; color: var(--text); }
.tag {
  justify-self: end; padding: 7px 12px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* ---------- Quality cards ---------- */
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.q-card {
  padding: 14px 16px; background: #fff; border-left: 3px solid var(--orange); border-radius: 4px;
  font-size: 14px; line-height: 1.5; color: var(--text);
}
.q-card strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 2px; }

/* ---------- Industries mosaic ---------- */
.industries { background: var(--ink); padding: 8px; }
.industries__head { padding: 80px 24px 56px; text-align: center; }
.industries__head .h2 { color: #fff; margin: 0; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mosaic + .tile--wide, .tile--wide + .mosaic { margin-top: 8px; }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; color: #fff; }
.tile:hover { color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8));
}
.tile__text { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; }
.tile__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 40px); line-height: 1; }
.tile__sub { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--orange-soft); margin-top: 10px; }
.tile--wide { aspect-ratio: auto; height: clamp(260px, 32vw, 420px); }
.tile--wide::after { background: linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,.7)); }
.tile--wide .tile__text { left: auto; right: 48px; bottom: auto; top: 50%; transform: translateY(-50%); text-align: right; }
.tile--wide .tile__title { font-size: clamp(32px, 4vw, 56px); }

/* ---------- Process ---------- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.step__body {
  flex: 1; padding: 12px 16px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(21,21,27,.06); font-size: 14px; line-height: 1.5; color: var(--text);
}
.step__body strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 2px; }

/* ---------- Why ---------- */
.why { padding-top: 0; }
.why .h2 { text-align: center; margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-card {
  background: var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 12px;
  border-top: 4px solid var(--orange); border-radius: var(--radius); transition: transform .25s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card h3 { font-weight: 700; font-size: 19px; color: var(--orange-light); }
.why-card p { font-size: 14px; line-height: 1.6; color: #d2d2d8; }
.why-card a { font-size: 14px; color: #fff; text-decoration: underline; margin-top: auto; }

/* ---------- Contact ---------- */
.contact { align-items: start; }
.contact .h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.label-sm { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 28px 0 6px; }
.email-lg { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 24px); color: var(--orange-dark); word-break: break-word; }
.contact__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 36px; border-radius: var(--radius); }

.form {
  background: var(--paper-3); border: 1px solid var(--paper-2); border-top: 4px solid var(--orange);
  border-radius: 8px; box-shadow: 0 30px 60px -30px rgba(21,21,27,.3);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.form h3 { font-weight: 800; font-size: 20px; color: var(--ink); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); }
.field input, .field select, .field textarea {
  padding: 11px 12px; border: 1px solid #c9c8c2; border-radius: var(--radius);
  background: #fff; font-size: 14px; color: var(--ink); outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input[type="date"] { min-height: 43px; cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,105,28,.18);
}
.form .btn { align-self: flex-start; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note.is-success { color: #1f7a3a; font-weight: 600; }
.form__note.is-error { color: #b42318; font-weight: 600; }
.form { position: relative; }
.form .btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d2d2d8; padding: 64px var(--gutter) 28px; border-top: 4px solid var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; margin: 0 0 14px; }
.footer p { font-size: 13px; line-height: 1.65; }
.footer .logo { margin-bottom: 16px; display: inline-flex; }
.footer .logo img { height: 24px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer__links a { color: var(--orange-light); }
.footer__links a:hover { color: #fff; }
.footer__email { font-size: 14px; color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  font-size: 12px; line-height: 1.6; color: #9a9aa2; text-align: center;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  :root { --section-y: 88px; }
  .nav { gap: 18px; font-size: 13px; }
  .split { gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px var(--gutter) 20px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .2s, visibility .2s;
  }
  .nav-open .nav { max-height: 480px; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
  .nav .btn { margin-top: 16px; padding: 14px 18px; }

  .split { grid-template-columns: 1fr; }
  .split--reverse-mobile > :first-child { order: 2; }
  .photo-tall { aspect-ratio: 16 / 10; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(21,21,27,.2); }

  .coal-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .coal-row h3 { grid-column: 1; grid-row: 1; }
  .coal-row .tag { grid-column: 2; grid-row: 1; }
  .coal-row p { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .logo img { height: 21px; }
  :root { --section-y: 72px; --gutter: 20px; }
  .hero { min-height: auto; }
  .hero__inner { padding: 64px var(--gutter); gap: 32px; }
  .hero__main, .hero__card { flex: 1 1 100%; }
  .chip { font-size: 10px; letter-spacing: .08em; }
  .btn-row .btn { flex: 1 1 auto; }
  .stat { padding: 20px var(--gutter); }
  .stat strong { font-size: 28px; }
  .checks, .q-grid, .form__grid { grid-template-columns: 1fr; }
  .diamond { max-width: 340px; }
  .framed::before { top: -10px; right: -10px; }
  .mosaic { grid-template-columns: 1fr; }
  .tile__text { left: 20px; right: 20px; bottom: 20px; }
  .tile__sub { letter-spacing: .18em; }
  .tile--wide .tile__text { right: 20px; left: 20px; }
  .industries__head { padding: 56px 16px 40px; }
  .coal-row { padding: 22px 16px; }
  .coal-row h3 { font-size: 19px; }
  .why-grid { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form .btn { align-self: stretch; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
