/* Prime Energy Equipment Trading L.L.C - site styles
   Palette taken from the logo: Prime Blue, Gear Slate, Bolt Orange. */

:root {
  --blue: #1b4f82;
  --blue-dark: #15406a;
  --navy: #10263f;
  --slate: #3b4654;
  --orange: #f7941d;
  --orange-dark: #d97a0c;
  --ink: #1e2730;
  --muted: #5b6673;
  --line: #d8dee5;
  --line-strong: #b9c2cc;
  --paper: #f4f6f8;
  --white: #ffffff;
  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.012em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h3 { font-size: 1.1875rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.lead { font-size: 1.25rem; color: var(--slate); max-width: 62ch; }
.muted { color: var(--muted); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--paper { background: var(--paper); }
.section-head { max-width: 70ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 12px; }
.section-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.section-head--row > div { max-width: 70ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--navy { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--navy:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }

.text-link { font-family: var(--font-head); font-weight: 600; color: var(--blue); }

/* Top bar */
.topbar {
  background: var(--navy); color: #c9d3de;
  font-size: 0.875rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; }
.topbar ul { display: flex; gap: 22px; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--orange); }
@media (max-width: 760px) {
  .topbar .topbar__place { display: none; }
  .topbar .topbar__email { display: none; }
  .topbar ul { gap: 16px; width: 100%; justify-content: space-between; }
}

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.brand { display: flex; align-items: center; }
.brand img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 28px; }
.nav a:not(.btn) { font-family: var(--font-head); font-weight: 500; color: var(--slate); font-size: 0.975rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { text-decoration: none; color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }
.nav .btn { padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }
@media (max-width: 900px) {
  .header .container { min-height: 78px; }
  .brand img { height: 58px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
         flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero {
  position: relative; color: #fff;
  background: var(--navy) url("../img/hero-offshore.jpg") center / cover no-repeat;
  min-height: 600px;
  display: flex; align-items: center;
  padding: clamp(72px, 10vw, 120px) 0 clamp(120px, 14vw, 170px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,38,63,.94) 0%, rgba(16,38,63,.82) 38%, rgba(16,38,63,.35) 70%, rgba(16,38,63,.2) 100%);
}
.hero .container { position: relative; }
.hero__inner { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { font-size: 1.25rem; color: #d7e0ea; max-width: 56ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 28px; font-size: 0.95rem; color: #aebbc9; }
.hero__note strong { color: #fff; font-weight: 600; }

/* Quick quote panel, overlapping the hero */
.quick-quote { position: relative; z-index: 2; margin-top: -92px; }
.quick-quote__box {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange);
  padding: 28px 32px 32px;
  box-shadow: 0 18px 40px -24px rgba(16,38,63,.35);
}
.quick-quote__box h2 { font-size: 1.375rem; margin-bottom: 4px; }
.quick-quote__box > p { color: var(--muted); margin-bottom: 20px; }
.quick-quote form { display: grid; grid-template-columns: 2.2fr 1fr 1fr auto; gap: 14px; align-items: end; }
.quick-quote .btn { height: 50px; white-space: nowrap; }
@media (max-width: 900px) { .quick-quote form { grid-template-columns: 1fr 1fr; } .quick-quote form .field--wide, .quick-quote .btn { grid-column: 1 / -1; } }
@media (max-width: 600px) { .quick-quote { margin-top: -64px; } .quick-quote__box { padding: 22px 20px 24px; } .quick-quote form { grid-template-columns: 1fr; } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; color: var(--slate); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; height: 50px; width: 100%;
}
.field textarea { height: auto; min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,130,.18); }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.form-actions .muted { font-size: 0.9rem; }
.form-status { margin-top: 14px; font-size: 0.95rem; color: var(--blue); }

/* Facts strip */
.facts { padding: clamp(40px, 6vw, 64px) 0 0; }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 22px 24px 22px 0; display: flex; gap: 14px; align-items: flex-start; }
.facts li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.facts svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 2px; }
.facts strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; line-height: 1.3; }
.facts span { color: var(--muted); font-size: 0.925rem; line-height: 1.4; display: block; margin-top: 3px; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* Catalogue grid (shared-border tiles) */
.catalogue { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.catalogue a { display: block; background: #fff; padding: 26px 22px 28px; color: inherit; min-height: 100%; transition: background-color .15s ease; }
.catalogue a:hover { text-decoration: none; background: var(--paper); }
.catalogue svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 18px; }
.catalogue h3 { font-size: 1.0625rem; margin-bottom: 8px; color: var(--navy); }
.catalogue p { font-size: 0.925rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1100px) { .catalogue { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .catalogue { grid-template-columns: 1fr 1fr; } .catalogue a { padding: 20px 16px 22px; } }
@media (max-width: 380px) { .catalogue { grid-template-columns: 1fr; } }

/* Industries */
.industries { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.industries__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.industries__media figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.industries__list li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 4px; }
.industries__list li:last-child { border-bottom: 1px solid var(--line); }
.industries__list h3 { margin: 0; font-size: 1.125rem; }
.industries__list p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .industries { grid-template-columns: 1fr; } }

/* How we work with procurement teams */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.points svg { width: 40px; height: 40px; color: var(--orange); }
.points h3 { margin-bottom: 6px; }
.points p { color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }

/* Brands */
.brands { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.brands li { font-family: var(--font-head); font-weight: 600; color: var(--slate); font-size: 0.975rem; padding: 10px 16px; background: #fff; border: 1px solid var(--line); }
.brands-note { margin-top: 20px; font-size: 0.95rem; color: var(--muted); max-width: 70ch; }

/* CTA band */
.cta { position: relative; color: #fff; background: var(--navy) url("../img/cta-night.jpg") center / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,38,63,.96) 0%, rgba(16,38,63,.9) 55%, rgba(16,38,63,.6) 100%); }
.cta .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 80px); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #c9d3de; font-size: 1.125rem; max-width: 56ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page header (inner pages) */
.page-head { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-head--photo { background-position: center; background-size: cover; background-repeat: no-repeat; }
.page-head--products { background-image: url("../img/hand-tools.jpg"); }
.page-head--about { background-image: url("../img/about-hero.jpg"); }
.page-head--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,38,63,.95) 0%, rgba(16,38,63,.8) 50%, rgba(16,38,63,.45) 100%); }
.page-head .container { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.page-head h1 { color: #fff; max-width: 20ch; margin-bottom: 14px; }
.page-head p { color: #c9d3de; font-size: 1.2rem; max-width: 60ch; }
.crumbs { font-size: 0.9rem; color: #aebbc9; margin-bottom: 18px; }
.crumbs a { color: #fff; }
.crumbs span { margin: 0 8px; }

/* Products page */
.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.subnav { position: sticky; top: 100px; }
.subnav h2 { font-size: 0.9rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.subnav li a { display: block; padding: 9px 0 9px 14px; border-left: 2px solid var(--line); color: var(--slate); font-size: 0.95rem; }
.subnav li a:hover { text-decoration: none; color: var(--navy); border-left-color: var(--navy); }
.subnav li a.is-active { color: var(--blue); border-left-color: var(--orange); font-weight: 600; }
.subnav .btn { margin-top: 20px; width: 100%; }
@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
  .subnav { position: static; }
  .subnav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .subnav li a { border: 1px solid var(--line); padding: 8px 12px; }
  .subnav li a.is-active { border-color: var(--blue); }
  .subnav .btn { display: none; }
}

.product-group { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.product-group:first-child { border-top: 0; padding-top: 0; }
.product-group__head { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; margin-bottom: 24px; }
.product-group__head img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-group__head.no-photo { grid-template-columns: 1fr; }
.product-group h2 { font-size: 1.625rem; margin-bottom: 10px; }
.product-group .lead { font-size: 1.1rem; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.items li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.items li::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: none; position: relative; top: -2px; }
.product-group__brands { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.product-group__brands strong { color: var(--slate); font-weight: 600; }
.product-group__cta { margin-top: 22px; }
@media (max-width: 760px) {
  .product-group__head { grid-template-columns: 1fr; }
  .product-group__head img { order: -1; aspect-ratio: 16 / 9; }
  .items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .items { grid-template-columns: 1fr; } }

/* About */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { font-family: var(--font-head); font-weight: 600; color: var(--slate); width: 38%; padding-right: 24px; font-size: 0.95rem; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { counter-increment: step; border-top: 2px solid var(--blue); padding-top: 16px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: 1.1rem; margin-bottom: 8px; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.steps p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--muted); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list svg { width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 0.95rem; margin-bottom: 2px; }
.contact-list a { font-size: 1.1rem; }
.contact-list p { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.map { margin-top: 28px; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.contact-form { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.contact-form h2 { font-size: 1.5rem; }
.contact-form > p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--navy); color: #b7c3d0; font-size: 0.975rem; }
.footer a { color: #e6ecf2; }
.footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px) 40px; }
.footer__brand img { height: 72px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 40ch; }
.footer h3 { color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; }
.footer li { padding: 5px 0; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--orange); flex: none; margin-top: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; font-size: 0.875rem; color: #8ea0b3; }
@media (max-width: 960px) { .footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .container { grid-template-columns: 1fr; gap: 28px; } }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
}
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 30px; height: 30px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
