:root {
  --color-navy: #071d35;
  --color-navy-2: #0d2a4a;
  --color-ink: #10243b;
  --color-red: #d71920;
  --color-red-dark: #a81218;
  --color-gold: #c69042;
  --color-page: #f5f7fa;
  --color-panel: #fbfcfe;
  --color-panel-strong: #ffffff;
  --color-border: rgba(7, 29, 53, 0.12);
  --color-muted: rgba(7, 29, 53, 0.72);
  --color-muted-light: rgba(255, 255, 255, 0.74);
  --color-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(7, 29, 53, 0.10);
  --shadow-strong: 0 24px 70px rgba(7, 29, 53, 0.22);
  --radius: 10px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background: rgba(245, 247, 250, 0.94);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled {
  border-color: rgba(7, 29, 53, 0.18);
  box-shadow: 0 10px 35px rgba(7, 29, 53, 0.10);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  width: min(100% - 2rem, var(--content));
  min-height: 78px;
  margin: 0 auto;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand {
  width: 178px;
  min-width: 150px;
}
.brand img,
.footer-logo { width: 100%; height: auto; }
.brand__fallback {
  display: inline-flex;
  align-items: center;
  color: var(--color-navy);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}
.primary-nav__list,
.footer-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}
.primary-nav a,
.site-footer nav a {
  text-decoration: none;
  color: rgba(7, 29, 53, 0.76);
  font-size: 0.91rem;
  font-weight: 800;
  transition: color 160ms ease;
}
.primary-nav a:hover,
.site-footer nav a:hover { color: var(--color-red); }

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.82rem 1.08rem;
  font-weight: 850;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.header-cta,
.button--primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.22);
}
.header-cta:hover,
.button--primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(215, 25, 32, 0.24);
}
.button--secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}
.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.text-link,
.commodity-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-red);
  font-weight: 850;
  text-decoration: none;
}
.text-link:hover,
.commodity-card a:hover { text-decoration: underline; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-panel-strong);
  color: var(--color-navy);
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-main { overflow: hidden; }
.hero,
.subpage-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-white);
}
.hero {
  display: flex;
  min-height: 72svh;
  padding: 3.8rem 1rem 2.9rem;
}
.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}
.hero__media {
  background-image: url("../images/petcoke-industrial.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.74;
  transform: scale(1.02);
}
.hero__shade {
  background:
    linear-gradient(90deg, rgba(7, 29, 53, 0.96) 0%, rgba(7, 29, 53, 0.82) 43%, rgba(7, 29, 53, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 29, 53, 0.96) 0%, rgba(7, 29, 53, 0.08) 52%, rgba(7, 29, 53, 0.24) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content));
  margin: auto;
}
.eyebrow {
  margin: 0 0 0.9rem;
  color: #ff666b;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow--red { color: var(--color-red); }
.hero h1,
.section h2,
.subpage-hero h1,
.page-card h1 {
  margin: 0;
  font-weight: 920;
  line-height: 1.04;
}
.hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 4.5rem); }
.hero__lead {
  max-width: 720px;
  margin: 1.35rem 0 0;
  color: var(--color-muted-light);
  font-size: 1.22rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.proof-strip {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-page);
}
.proof-strip__inner {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
  padding: 1rem 0;
}
.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-border);
  box-shadow: var(--shadow-soft);
}
.hero__proof div { min-height: 118px; padding: 1.15rem; background: var(--color-panel-strong); }
.hero__proof strong { display: block; color: var(--color-red); font-size: 2.05rem; line-height: 1; }
.hero__proof span { display: block; margin-top: 0.5rem; color: var(--color-muted); font-size: 0.92rem; }

.market-strip {
  border-bottom: 1px solid var(--color-border);
  background: #eef3f7;
}
.market-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
}
.market-strip span {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--color-border);
  color: rgba(7, 29, 53, 0.78);
  font-weight: 850;
  text-align: center;
}
.market-strip span:first-child { border-left: 1px solid var(--color-border); }

.section { padding: 6.2rem 1rem; }
.section__inner { width: min(100%, var(--content)); margin: 0 auto; }
.split,
.footprint__inner,
.contact__inner,
.highlight-panel__inner,
.two-column-lists {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}
.section h2 {
  max-width: 760px;
  color: var(--color-navy);
  font-size: clamp(2.15rem, 4vw, 3.25rem);
}
.copy-stack p,
.section-heading p,
.values-grid p,
.info-grid p,
.process-list p,
.commodity-card p,
.contact__copy p,
.site-footer p,
.legal-stack p,
.page-content p,
.check-list li,
.notice-box {
  color: var(--color-muted);
}
.copy-stack p { margin: 0 0 1.25rem; font-size: 1.08rem; }
.copy-stack p:last-child { margin-bottom: 0; }
.section--split,
.process { background: var(--color-page); }
.values,
.highlight-panel { background: #eef3f7; }

.section--dark {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
}
.section--dark::before,
.subpage-hero::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.section--dark::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 96px);
}
.section--dark .section__inner { position: relative; }
.section--dark h2,
.section--dark h3 { color: var(--color-white); }
.section--dark .section-heading p,
.section--dark .commodity-card p { color: var(--color-muted-light); }
.section-heading { max-width: 840px; margin-bottom: 2.4rem; }
.section-heading--narrow { max-width: 760px; }
.section-heading p { margin: 1rem 0 0; font-size: 1.08rem; }

.commodity-grid,
.values-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.commodity-grid--four,
.values-grid--four { grid-template-columns: repeat(4, 1fr); }
.commodity-grid--five { grid-template-columns: repeat(5, 1fr); }
.commodity-card,
.values-grid article,
.info-grid article,
.quote-form,
.notice-box,
.legal-stack article,
.page-card {
  border-radius: var(--radius);
}
.commodity-card {
  min-height: 310px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.commodity-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  margin-bottom: 3.3rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ff7378;
  font-size: 0.82rem;
  font-weight: 950;
}
.commodity-card h3,
.process-list h3,
.values-grid h3,
.info-grid h3,
.legal-stack h2 {
  margin: 0 0 0.7rem;
  font-size: 1.32rem;
  line-height: 1.16;
}
.commodity-card p,
.process-list p,
.values-grid p,
.info-grid p { margin: 0; }
.values-grid article,
.info-grid article {
  min-height: 215px;
  padding: 1.35rem;
  border: 1px solid var(--color-border);
  background: var(--color-panel-strong);
  box-shadow: 0 10px 28px rgba(7, 29, 53, 0.05);
}
.values-grid article:nth-child(2n),
.info-grid article:nth-child(2n) { border-top: 4px solid var(--color-gold); }
.values-grid article:nth-child(2n+1),
.info-grid article:nth-child(2n+1) { border-top: 4px solid var(--color-red); }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-top: 2.7rem;
}
.process-list article {
  min-height: 260px;
  padding: 1.15rem 1rem 0;
  border-top: 4px solid var(--color-red);
}
.process-list span {
  display: block;
  margin-bottom: 2rem;
  color: rgba(7, 29, 53, 0.56);
  font-size: 0.86rem;
  font-weight: 950;
}

.highlight-panel__inner {
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--color-panel-strong);
  box-shadow: var(--shadow-soft);
}

.contact {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
}
.contact::before {
  background:
    linear-gradient(90deg, rgba(7, 29, 53, 0.98), rgba(7, 29, 53, 0.90)),
    url("../images/petcoke-industrial.webp") center / cover;
}
.contact__inner { position: relative; }
.contact h2 { color: var(--color-white); }
.contact__copy p { color: var(--color-muted-light); font-size: 1.08rem; }
.contact address {
  display: grid;
  gap: 0.2rem;
  margin-top: 2rem;
  font-style: normal;
  color: var(--color-muted-light);
}
.contact address strong { color: var(--color-white); }
.contact address a { margin-top: 0.35rem; color: var(--color-white); font-weight: 850; }
.quote-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--color-panel-strong);
  color: var(--color-navy);
  box-shadow: var(--shadow-strong);
}
.form-row { display: grid; gap: 0.42rem; }
.form-row label { color: rgba(7, 29, 53, 0.82); font-size: 0.9rem; font-weight: 850; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(7, 29, 53, 0.16);
  border-radius: 7px;
  background: var(--color-page);
  color: var(--color-navy);
  font: inherit;
  padding: 0.85rem 0.9rem;
}
.form-row textarea { min-height: 142px; resize: vertical; }
.form-note { margin: -0.25rem 0 0; color: rgba(7, 29, 53, 0.62); font-size: 0.9rem; }

.subpage-hero {
  padding: 5.8rem 1rem;
}
.subpage-hero::before {
  background:
    linear-gradient(120deg, rgba(7, 29, 53, 0.98), rgba(7, 29, 53, 0.82)),
    radial-gradient(circle at 80% 10%, rgba(215, 25, 32, 0.28), transparent 34%);
}
.subpage-hero--petcoke::before {
  background:
    linear-gradient(120deg, rgba(7, 29, 53, 0.96), rgba(7, 29, 53, 0.82)),
    url("../images/petcoke-industrial.webp") center / cover;
}
.subpage-hero .section__inner { position: relative; }
.subpage-hero h1 { max-width: 920px; color: var(--color-white); font-size: clamp(2.55rem, 5vw, 4.2rem); }
.subpage-hero p:not(.eyebrow) { max-width: 760px; margin: 1.2rem 0 0; color: var(--color-muted-light); font-size: 1.15rem; }

.page-main {
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}
.page-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-panel-strong);
  box-shadow: var(--shadow-soft);
}
.page-card h1 { color: var(--color-navy); font-size: clamp(2rem, 4vw, 3.2rem); }
.page-content {
  margin-top: 1.5rem;
}
.page-content h2,
.page-content h3 { color: var(--color-navy); line-height: 1.15; }
.page-content a { color: var(--color-red); font-weight: 800; }
.optional-editor-content:empty { display: none; }
.narrow-content { max-width: 880px; }
.two-column-lists h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.check-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 0.8rem 0.9rem 0.8rem 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-panel-strong);
}
.check-list li::before {
  content: "";
  position: absolute;
  top: 1.08rem;
  left: 0.9rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--color-red);
}
.notice-box {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(215, 25, 32, 0.18);
  background: rgba(215, 25, 32, 0.06);
}
.legal-stack { display: grid; gap: 1rem; }
.legal-stack article {
  padding: 1.4rem;
  border: 1px solid var(--color-border);
  background: var(--color-panel-strong);
}
.legal-stack h2 { color: var(--color-navy); }
.legal-stack p { margin: 0; }

.site-footer {
  margin: 0;
  padding: 3.6rem 1rem 1.6rem;
  border-top: 1px solid var(--color-border);
  background: #eef3f7;
}
.site-footer__inner,
.site-footer__bottom { width: min(100%, var(--content)); margin: 0 auto; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.5fr) minmax(220px, 0.7fr);
  gap: 3rem;
}
.footer-logo { width: 180px; }
.footer-logo.brand__fallback { width: auto; font-size: 1.8rem; }
.site-footer p { max-width: 460px; margin: 1rem 0 0; }
.footer-disclaimer { font-size: 0.9rem; }
.site-footer nav,
.site-footer__contact,
.footer-nav__list {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}
.footer-nav__list { align-items: start; }
.site-footer__contact { color: var(--color-muted); }
.site-footer__contact strong { color: var(--color-navy); }
.site-footer__contact a { color: var(--color-red); font-weight: 850; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-border);
  color: rgba(7, 29, 53, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 1160px) {
  .commodity-grid--four,
  .values-grid--four,
  .commodity-grid--five { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .site-header__inner { grid-template-columns: auto auto auto; justify-content: space-between; }
  .menu-toggle { display: block; order: 3; }
  .header-cta { order: 2; }
  .primary-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 0.8rem 1rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-page);
    box-shadow: 0 18px 42px rgba(7, 29, 53, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .primary-nav__list { display: grid; gap: 0; }
  .primary-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(7, 29, 53, 0.08);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .split,
  .footprint__inner,
  .contact__inner,
  .highlight-panel__inner,
  .two-column-lists { grid-template-columns: 1fr; gap: 2rem; }
  .commodity-grid,
  .values-grid,
  .info-grid { grid-template-columns: 1fr; }
  .commodity-card { min-height: 240px; }
  .commodity-card__index { margin-bottom: 2.2rem; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-header__inner { width: min(100% - 1rem, var(--content)); min-height: 68px; gap: 0.7rem; }
  .brand { width: 144px; min-width: 132px; }
  .header-cta { display: none; }
  .primary-nav { top: 68px; }
  .hero { min-height: auto; padding: 4.4rem 1rem 3.2rem; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(7, 29, 53, 0.96) 0%, rgba(7, 29, 53, 0.84) 100%),
      linear-gradient(0deg, rgba(7, 29, 53, 0.96), rgba(7, 29, 53, 0.24));
  }
  .hero__lead { font-size: 1.06rem; }
  .hero__actions { display: grid; }
  .hero__proof { grid-template-columns: 1fr; }
  .hero__proof div { min-height: 112px; }
  .market-strip__inner { grid-template-columns: 1fr 1fr; }
  .market-strip span { min-height: 62px; padding: 0.65rem; font-size: 0.92rem; }
  .section { padding: 4.2rem 1rem; }
  .process-list,
  .country-wall { grid-template-columns: 1fr; }
  .process-list article,
  .values-grid article,
  .info-grid article { min-height: 0; }
  .highlight-panel__inner { padding: 1.25rem; }
  .site-footer__inner,
  .site-footer__bottom { grid-template-columns: 1fr; }
  .site-footer__inner { gap: 2rem; }
  .site-footer__bottom { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.subpage-hero--minerals {
  background:
    radial-gradient(circle at 18% 18%, rgba(198, 144, 66, 0.18), transparent 22%),
    radial-gradient(circle at 84% 22%, rgba(215, 25, 32, 0.18), transparent 24%),
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.type-grid--minerals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-panel-strong);
  box-shadow: var(--shadow-soft);
}

.type-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(7, 29, 53, 0.06), rgba(198, 144, 66, 0.08));
}

.type-card__body {
  padding: 1.1rem 1.1rem 1.2rem;
}

.type-card__body h3 {
  margin: 0 0 0.55rem;
  color: var(--color-navy);
  font-size: 1.15rem;
}

.type-card__body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.97rem;
}

@media (max-width: 1080px) {
  .type-grid--minerals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .type-grid,
  .type-grid--minerals {
    grid-template-columns: 1fr;
  }
}
