:root {
  --black: #111111;
  --ink: #252525;
  --muted: #666666;
  --line: #e7e2d8;
  --soft: #f8f7f4;
  --white: #ffffff;
  --gold: #b99245;
  --gold-dark: #8f6d2f;
  --silver: #c7c9cc;
  --silver-dark: #8d9298;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.09);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: var(--black);
  color: var(--silver);
  font-size: 0.82rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 142px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links > a,
.dropdown-trigger {
  padding: 26px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-links a:hover,
.dropdown:hover .dropdown-trigger {
  color: var(--gold-dark);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  width: 330px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 180ms ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.dropdown-menu a:hover {
  background: var(--soft);
  color: var(--black);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline {
  color: var(--black);
  background: var(--white);
  border-color: var(--silver);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-size: 1.4rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 220px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 43%, rgba(255, 255, 255, 0.72) 74%, rgba(255, 255, 255, 0.38) 100%), url("assets/web/refinery-pipelines.jpg") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 74px;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--white));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--black);
  font-size: clamp(2.5rem, 5.1vw, 4.45rem);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  color: var(--black);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  color: var(--black);
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 660px;
  color: #4f4f4f;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--black);
  font-size: 1.55rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-grid div {
  min-height: 128px;
  padding: 24px;
  background: var(--white);
}

.trust-grid strong,
.proof-grid strong {
  display: block;
  color: var(--black);
  font-size: 1rem;
}

.trust-grid span,
.proof-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--black);
  color: var(--silver);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: var(--silver);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 58px;
  align-items: center;
}

.split-dark {
  align-items: start;
}

.section-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.visual-panel {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.visual-panel img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.service-number {
  color: var(--silver-dark);
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
}

.service-link {
  color: var(--gold-dark);
  font-weight: 800;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.split-dark .technology-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.tech-item {
  padding: 28px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: #2a2a2a;
}

.process-step {
  min-height: 210px;
  padding: 28px;
  background: #171717;
}

.process-step span {
  color: var(--gold);
  font-weight: 850;
}

.page-hero {
  padding: 88px 0 74px;
  background: linear-gradient(90deg, rgba(17,17,17,0.88), rgba(17,17,17,0.58)), url("assets/web/pumpjack-sunset.jpg") center / cover no-repeat;
  color: var(--white);
}

.page-hero h1,
.page-hero h2 {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: #eeeeee;
  font-size: 1.08rem;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 46px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.side-nav a {
  display: block;
  padding: 12px 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.side-nav a:last-child {
  border-bottom: 0;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--gold-dark);
}

.content-block {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.proof-grid div {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}

.contact-info,
.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row strong {
  display: block;
  color: var(--black);
}

.contact-row span,
.contact-row a {
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--black);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfbfa;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.map-wrap {
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--white);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.cta-band {
  padding: 70px 0;
  background: linear-gradient(90deg, var(--black), #2a2926);
  color: var(--white);
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
}

.site-footer {
  background: #0c0c0c;
  color: var(--silver);
  padding: 54px 0 24px;
}

.site-footer .brand {
  width: fit-content;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid rgba(185, 146, 69, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 34px;
}

.footer-grid h3 {
  color: var(--white);
}

.footer-grid a,
.footer-grid p {
  color: var(--silver);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #292929;
  color: var(--silver-dark);
  font-size: 0.86rem;
}

@media (max-width: 920px) {
  .topbar {
    display: none;
  }

  .nav-inner {
    min-height: 78px;
  }

  .brand-logo {
    width: 118px;
    height: 62px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a,
  .dropdown-trigger {
    width: 100%;
    padding: 13px 0;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 0 0 8px 10px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 0 88px;
  }

  .hero-metrics,
  .trust-grid,
  .capabilities,
  .technology-grid,
  .proof-grid,
  .process,
  .split,
  .service-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .cta-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .nav-inner,
  .section-inner,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 68px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metric,
  .service-card,
  .contact-info,
  .contact-form {
    padding: 22px;
  }
}
