/* === Pass & Joyce site styles =============================================
   Forked from the marketing UI kit, tightened for the live site refresh.
   Adds: dual-product grid, fuel-monitoring detail page, line-drawing spec
   sheet treatment.
   ========================================================================= */
@import url('design-system/colors_and_type.css');

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brass-300); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--brass-400); outline-offset: 2px; }

.page { min-height: 100vh; }

/* ============================================================ Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px 64px;
  background: rgba(248,245,242,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--paper-400);
}
.nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nav-brand img { width: 30px; height: 30px; }
.nav-brand .wm {
  font-family: var(--font-wordmark); font-weight: 600; font-size: 18px;
  letter-spacing: -0.005em; color: var(--ink-900);
  display: inline-flex; align-items: baseline;
}
.nav-brand .wm .amp { font-style: italic; font-weight: 400; color: var(--ink-400); margin: 0 0.15em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav-link {
  font-family: var(--font-sans); font-weight: 500; font-size: 13.5px;
  color: var(--ink-700); text-decoration: none; padding: 6px 0;
  position: relative; cursor: pointer; background: none; border: none;
}
.nav-link:hover { color: var(--ink-900); }
.nav-link:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass-400);
}
.nav-link.active { color: var(--ink-900); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass-400);
}
.nav-cta {
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em;
  background: var(--ink-900); color: var(--paper-100);
  padding: 11px 20px; border: none; cursor: pointer;
  transition: background 200ms;
}
.nav-cta:hover { background: var(--brass-500); color: var(--ink-900); }

/* ============================================================ Hero */
.hero {
  padding: 96px 64px 80px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 1200px; margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--brass-600);
  margin-bottom: 22px;
}
.sunburst { color: var(--brass-400); width: 280px; margin-bottom: 30px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 7vw, 84px); line-height: 0.98;
  letter-spacing: -0.025em; color: var(--ink-900);
  margin: 0 0 28px; max-width: 16ch; text-wrap: balance;
}
.hero .lead {
  font-family: var(--font-sans); font-size: 19px; line-height: 1.55;
  color: var(--ink-600); max-width: 52ch; margin: 0 0 40px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 28px; border: 1px solid var(--ink-900);
  background: var(--ink-900); color: var(--paper-100);
  cursor: pointer; transition: all 200ms;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.btn:hover { background: var(--brass-500); color: var(--ink-900); border-color: var(--brass-500); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink-900); }
.btn.ghost:hover { background: var(--ink-900); color: var(--paper-100); }
.btn .ar { font-family: var(--font-display); }

/* ============================================================ Approach */
.approach {
  padding: 80px 64px;
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
}
.approach .head {
  text-align: center; margin-bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.approach h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 44px; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0; color: var(--ink-900);
}
.approach-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.approach-col { padding: 8px 32px; position: relative; }
.approach-col + .approach-col::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--brass-400);
}
.approach-col .num {
  font-family: var(--font-wordmark); font-style: italic; font-weight: 400; font-size: 13.5px;
  color: var(--brass-500); margin-bottom: 12px;
}
.approach-col h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; line-height: 1.15; margin: 0 0 14px;
  color: var(--ink-900);
}
.approach-col p {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  color: var(--ink-500); margin: 0;
}

/* ============================================================ Section header */
.section-eyebrow {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-bottom: 48px;
}
.section-eyebrow h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 44px; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0; color: var(--ink-900); text-wrap: balance;
}
.section-eyebrow .sub {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink-500); margin: 0;
  max-width: 56ch; text-align: center; line-height: 1.5;
}

/* ============================================================ Products (the new dual-card grid) */
.products-wrap { padding: 96px 64px; max-width: 1200px; margin: 0 auto; }
.products-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.product-card {
  border: 3px double var(--ink-900);
  background: var(--paper-100);
  padding: 40px 40px 36px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background 200ms;
  cursor: pointer;
}
.product-card:hover { background: var(--paper-50); }
.product-card .eb {
  font-family: var(--font-wordmark); font-style: italic; font-weight: 400;
  font-size: 13px; color: var(--brass-500);
}
.product-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; line-height: 1.04; letter-spacing: -0.02em;
  margin: 4px 0 4px; color: var(--ink-900);
  text-wrap: balance;
}
.product-card .tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 18px; color: var(--brass-600); margin: 0 0 6px;
  line-height: 1.3;
}
.product-card p {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  color: var(--ink-600); margin: 0;
}
.product-card .illus {
  margin: 14px 0 6px;
  border-top: 1px solid var(--paper-400);
  border-bottom: 1px solid var(--paper-400);
  padding: 22px 0;
  display: flex; justify-content: center;
  color: var(--ink-900);
}
.product-card .illus svg { width: 100%; max-width: 340px; height: auto; }
.product-card .specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px 18px;
}
.product-card .spec { display: flex; flex-direction: column; gap: 2px; }
.product-card .spec b {
  font-family: var(--font-mono); font-size: 22px; color: var(--ink-900);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.product-card .spec span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-400);
}
.product-card .more {
  margin-top: auto; padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.product-card .more .arrow {
  font-family: var(--font-display); font-size: 24px; color: var(--brass-500);
  transition: transform 200ms;
}
.product-card:hover .more .arrow { transform: translateX(4px); color: var(--ink-900); }
.product-card .more .learn {
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-900);
}

/* ============================================================ Industries */
.industries { padding: 96px 64px; max-width: 1200px; margin: 0 auto; }
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.industry {
  border: 1px solid var(--ink-900);
  padding: 28px 28px 32px;
  background: var(--paper-100);
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: background 200ms;
}
.industry:hover { background: var(--paper-200); }
.industry .num {
  font-family: var(--font-wordmark); font-style: italic; font-weight: 400;
  font-size: 13px; color: var(--brass-500);
}
.industry h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  line-height: 1.1; margin: 0;
}
.industry p {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  color: var(--ink-500); margin: 0;
}
.industry .corner {
  position: absolute; top: 14px; right: 14px; color: var(--brass-400);
}
.industry .corner svg { width: 22px; height: 22px; }
.industry .tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px;
}
.industry .tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-500);
  border: 1px solid var(--paper-400); padding: 3px 8px;
}

/* ============================================================ Contact */
.contact {
  background: var(--ink-900); color: var(--paper-100);
  padding: 80px 64px; text-align: center;
}
.contact-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.contact .eb {
  color: var(--brass-300); font-family: var(--font-wordmark); font-weight: 600;
  font-size: 20px; letter-spacing: -0.005em;
}
.contact .eb .amp { font-style: italic; font-weight: 400; color: var(--brass-200); margin: 0 0.15em; }
.contact h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 44px;
  line-height: 1.1; margin: 0; color: var(--paper-50); letter-spacing: -0.02em;
}
.contact p {
  font-family: var(--font-sans); font-size: 16px; color: var(--paper-400);
  margin: 0; max-width: 44ch; line-height: 1.6;
}
.contact .btn { background: var(--brass-400); color: var(--ink-900); border-color: var(--brass-400); }
.contact .btn:hover { background: var(--paper-100); border-color: var(--paper-100); }

/* ============================================================ Footer */
.footer {
  background: var(--ink-800); color: var(--paper-400);
  padding: 56px 64px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; filter: invert(1) brightness(0.95); }
.footer-brand .wm {
  font-family: var(--font-wordmark); font-weight: 600; font-size: 20px;
  letter-spacing: -0.005em; color: var(--paper-100);
}
.footer-brand .wm .amp {
  font-style: italic; font-weight: 400; color: var(--brass-300); margin: 0 0.15em;
}
.footer-cols { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .head {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brass-300); margin-bottom: 6px;
}
.footer-col a, .footer-col button {
  font-family: var(--font-sans); font-size: 13px; color: var(--paper-300);
  text-decoration: none; background: none; border: none; padding: 0;
  text-align: left; cursor: pointer;
}
.footer-col a:hover, .footer-col button:hover { color: var(--brass-300); }
.footer .legal {
  border-top: 1px solid var(--ink-700);
  margin: 40px auto 0; padding-top: 22px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-300);
  max-width: 1200px;
  display: flex; flex-direction: column; gap: 16px;
}
.footer .legal-corp { display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
.footer .legal-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ============================================================ Legal page (privacy) */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 64px 24px 80px;
}
.legal-page .eyebrow { display: block; text-align: left; margin: 0 0 14px; }
.legal-page h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 18px; color: var(--ink-900);
}
.legal-page .lead {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  color: var(--ink-500); margin: 0 0 36px; max-width: 56ch;
}
.legal-page h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  line-height: 1.2; margin: 28px 0 10px; color: var(--ink-900);
}
.legal-page p {
  font-family: var(--font-sans); font-size: 15.5px; line-height: 1.65;
  color: var(--ink-700); margin: 0 0 12px; max-width: 68ch;
}
.legal-page a {
  color: var(--brass-600); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
}
.legal-page a:hover { color: var(--ink-900); }
.legal-page .updated {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-400); margin-top: 48px;
}

/* ============================================================ Product detail (shared) */
.pd-hero {
  padding: 60px 64px 80px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
.pd-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-500); cursor: pointer; background: none; border: none;
  margin-bottom: 24px; padding: 0;
}
.pd-back:hover { color: var(--brass-500); }
.pd-hero .eb {
  font-family: var(--font-wordmark); font-style: italic; font-weight: 400;
  font-size: 14px; color: var(--brass-500); margin-bottom: 16px;
}
.pd-hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 68px;
  line-height: 1; letter-spacing: -0.025em; margin: 0 0 22px;
  text-wrap: balance;
}
.pd-hero .lead {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  color: var(--ink-600); margin: 0 0 32px; max-width: 50ch;
}

/* spec sheet visual (replaces live preview on borehole) */
.pd-spec-sheet {
  background: var(--paper-100);
  border: 1px solid var(--ink-900);
  padding: 32px;
  position: relative;
  font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 8px 8px 0 var(--paper-300);
}
.pd-spec-sheet::before {
  content: ''; position: absolute; inset: 6px; border: 1px solid var(--brass-400);
  pointer-events: none;
}
.pd-spec-sheet .sheet-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--ink-900); padding-bottom: 10px;
}
.pd-spec-sheet .sheet-head .title {
  font-family: var(--font-display); font-size: 20px; color: var(--ink-900);
  font-weight: 600;
}
.pd-spec-sheet .sheet-head .ref {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-500);
  letter-spacing: 0.14em;
}
.pd-spec-sheet .drawing { display: flex; justify-content: center; padding: 6px 0; color: var(--ink-900); }
.pd-spec-sheet .drawing svg { width: 100%; max-width: 320px; height: auto; }
.pd-spec-sheet .numbers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px;
  padding-top: 14px; border-top: 1px dashed var(--ink-300);
}
.pd-spec-sheet .num-cell { display: flex; flex-direction: column; gap: 2px; }
.pd-spec-sheet .num-cell b {
  font-family: var(--font-mono); font-size: 26px; color: var(--ink-900);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.pd-spec-sheet .num-cell span {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-400);
}
.pd-spec-sheet .sheet-foot {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-400);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-top: 4px;
}

/* Capabilities */
.pd-caps {
  padding: 80px 64px; max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--ink-900);
}
.pd-caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 36px; margin-top: 32px;
}
.pd-cap {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 22px; border-top: 1px solid var(--brass-400);
}
.pd-cap .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--brass-500);
  letter-spacing: 0.14em;
}
.pd-cap h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  margin: 4px 0 6px; line-height: 1.2;
}
.pd-cap p {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  color: var(--ink-500); margin: 0;
}

/* Specs */
.pd-specs { padding: 80px 64px; max-width: 1000px; margin: 0 auto; }
.pd-specs-grid { display: grid; grid-template-columns: 180px 1fr; row-gap: 0; }
.pd-specs-row { display: contents; }
.pd-specs-row .l {
  font-family: var(--font-mono); font-size: 11px; color: var(--brass-500);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 0; border-bottom: 1px solid var(--paper-400);
}
.pd-specs-row .v {
  font-family: var(--font-sans); font-size: 14.5px; color: var(--ink-700);
  padding: 18px 0; border-bottom: 1px solid var(--paper-400); line-height: 1.5;
}

/* ============================================================ Responsive */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; gap: 16px; }
  .nav-links { gap: 18px; }
  .hero, .approach, .products-wrap, .industries, .contact, .pd-hero, .pd-caps, .pd-specs, .footer { padding-left: 24px; padding-right: 24px; }
  .approach-grid, .products-grid, .industries-grid, .pd-caps-grid, .pd-hero { grid-template-columns: 1fr; }
  .approach-col + .approach-col::before { display: none; }
  .pd-hero h1 { font-size: 48px; }
}

@media (max-width: 640px) {
  /* Nav: drop the brand wordmark + the two least-essential links so the
     remaining items (Products / Contact / Enquire) actually fit. */
  .nav { padding: 12px 18px; gap: 10px; }
  .nav-brand .wm { display: none; }
  .nav-links { gap: 14px; }
  .nav-link { font-size: 13px; padding: 4px 0; }
  .nav-links > .nav-link:nth-child(1),
  .nav-links > .nav-link:nth-child(3) { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 11px; letter-spacing: 0.14em; }

  /* Lighter vertical rhythm overall — 96px sections feel cavernous on phones. */
  .hero { padding: 56px 24px 64px; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 16.5px; }
  .approach, .industries, .products-wrap { padding-top: 56px; padding-bottom: 56px; }
  .contact { padding: 64px 24px; }

  .section-eyebrow h2, .approach h2, .contact h2 { font-size: 32px; }

  .approach-col { padding: 4px 0; }
  .approach-col h3 { font-size: 24px; }

  .product-card { padding: 28px 22px; }
  .product-card h3 { font-size: 28px; }
  .product-card .tagline { font-size: 16px; }

  .industry { padding: 22px 22px 24px; min-height: 0; }
  .industry h3 { font-size: 22px; }

  /* Footer: stack brand on top of the link columns; let columns wrap rather
     than overflow off the right edge. */
  .footer { padding: 44px 24px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-brand img { width: 36px; height: 36px; }
  .footer-cols { gap: 28px 36px; flex-wrap: wrap; }
  .footer .legal { gap: 14px; margin-top: 28px; padding-top: 16px; }
  .footer .legal-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .legal-page { padding: 40px 24px 56px; }

  /* Product detail pages */
  .pd-hero { padding: 32px 24px 56px; gap: 32px; }
  .pd-hero h1 { font-size: 38px; }
  .pd-hero .lead { font-size: 16px; }
  .pd-spec-sheet { padding: 22px; }
  .pd-spec-sheet .numbers { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pd-spec-sheet .num-cell b { font-size: 22px; }
  .pd-caps, .pd-specs { padding: 56px 24px; }
  .pd-specs-grid { grid-template-columns: 1fr; }
  .pd-specs-row .l { padding: 16px 0 4px; border-bottom: none; }
  .pd-specs-row .v { padding: 0 0 16px; }
}
