/* ==========================================================
   The Unique Quality Engineering Ltd. — site styles
   Rule: h1–h6, ul, li, p, span carry no class. Their parent
   div carries the class; tags are styled as descendants.
   ========================================================== */

:root {
  --ink: #13263a;        /* switchboard navy: text, header */
  --steel: #556676;      /* secondary text */
  --panel: #e4e6e1;      /* RAL 7035 panel grey: section bands */
  --paper: #ffffff;
  --line: #c9cdc6;       /* borders on grey */
  --copper: #b4632a;     /* busbar: the one structural accent */
  --signal: #f2b705;     /* safety yellow: primary action only */
  --focus: #1f6fd1;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 4px;
  --radius-m: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul { margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--signal); color: var(--ink); padding: 10px 16px;
  font-weight: 600; border-radius: var(--radius-s); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 16px/1 var(--font); text-decoration: none;
  border-radius: var(--radius-s); border: 2px solid transparent;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: #ffc81f; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(19, 38, 58, .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--copper);   /* the main busbar */
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font: 700 19px/1.1 var(--font-display); letter-spacing: .01em; }
.brand-name small { font-size: 13px; color: var(--steel); }

.main-nav ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; text-decoration: none;
  font-weight: 500; border-radius: var(--radius-s);
}
.main-nav a:hover { background: var(--panel); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--copper); border-radius: 0; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 2px solid var(--ink);
  background: transparent; border-radius: var(--radius-s); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.hero-title h1 {
  font: 700 clamp(42px, 6.4vw, 78px)/0.98 var(--font-display);
  letter-spacing: -.01em; text-wrap: balance;
}
.hero-lead { margin: 22px 0 30px; max-width: 34em; }
.hero-lead p { font-size: 19px; color: var(--steel); }
.hero-photo {
  position: relative; border-radius: var(--radius-m) var(--radius-m) 0 0; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--panel);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px; background: rgba(19, 38, 58, .86); color: #fff; font-size: 14px;
}

/* nameplate: the rating-plate strip under the hero */
.nameplate {
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--ink); color: #fff;
}
.nameplate-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.plate-item { padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.plate-item:first-child { border-left: 0; padding-left: 0; }
.plate-item dt { font-size: 14px; color: #b9c4cf; }
.plate-item dd { margin: 4px 0 0; font: 600 22px/1.2 var(--font-display); }

/* ---------- Sections & the busbar feeder ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-grey { background: var(--panel); }

/* Each section heading is a feeder tapped off the copper bus */
.feeder { position: relative; padding-left: 28px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 46em; }
.feeder::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--copper);
}
.feeder::after {
  content: ""; position: absolute; left: -5px; top: 14px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--copper);
}
.section-grey .feeder::after { background: var(--panel); }
.feeder h2 { font: 700 clamp(30px, 4vw, 46px)/1.05 var(--font-display); }
.feeder p { margin-top: 12px; color: var(--steel); font-size: 18px; }

/* ---------- Category range (home) ---------- */
.range-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--line); border: 2px solid var(--line);
}
.range-item { background: var(--paper); display: flex; flex-direction: column; }
.range-item .range-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.range-item .range-img img { width: 100%; height: 100%; object-fit: cover; }
.range-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.range-body h3 { font: 700 24px/1.15 var(--font-display); }
.range-body h3 a { text-decoration: none; }
.range-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.range-list ul { list-style: none; padding: 0; color: var(--steel); font-size: 15px; }
.range-list li { padding: 3px 0; }
.range-link { margin-top: auto; padding-top: 8px; }
.range-link a { font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--copper); }

/* ---------- Build / supply split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.split-col { background: var(--paper); border-top: 4px solid var(--ink); padding: 28px 28px 32px; }
.split-col.alt { border-top-color: var(--copper); }
.split-col h3 { font: 700 28px/1.1 var(--font-display); margin-bottom: 10px; }
.split-col .split-text p { color: var(--steel); margin-bottom: 18px; }
.split-col .split-list ul { padding-left: 20px; }
.split-col .split-list li { padding: 4px 0; }
.split-col .split-list li::marker { color: var(--copper); }

/* ---------- Process (a real sequence, so numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 24px 0 0; position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 700 20px/1 var(--font-display);
  position: relative; z-index: 1;
}
.step::before {
  content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 3px; background: var(--copper);
}
.step:last-child::before { display: none; }
.step-text { margin-top: 18px; }
.step-text h3 { font: 700 22px/1.2 var(--font-display); margin-bottom: 6px; }
.step-text p { color: var(--steel); font-size: 16px; }

/* ---------- Brands ---------- */
.brand-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); }
.brand-cell {
  padding: 26px 16px; text-align: center; border-left: 2px solid var(--ink);
  font: 700 26px/1 var(--font-display); letter-spacing: .02em;
}
.brand-cell:first-child { border-left: 0; }
.brand-note { margin-top: 16px; }
.brand-note p { color: var(--steel); font-size: 15px; }

/* ---------- Standards band ---------- */
.standards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.standards-text h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.1 var(--font-display); margin-bottom: 14px; }
.standards-text p { color: var(--steel); margin-bottom: 12px; }
.standards-photo { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.standards-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-text h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.1 var(--font-display); }
.cta-text p { margin-top: 8px; color: #c4ced8; }
.cta-band .btn-line { color: #fff; }
.cta-band .btn-line:hover { background: rgba(255,255,255,.08); }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--panel); padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-underline-offset: 3px; }
.page-title h1 { font: 700 clamp(38px, 5.4vw, 64px)/1 var(--font-display); }
.page-intro { margin-top: 14px; max-width: 40em; }
.page-intro p { color: var(--steel); font-size: 18px; }

/* ---------- Products page ---------- */
.cat-nav {
  position: sticky; top: 79px; z-index: 40; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cat-nav ul { list-style: none; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.cat-nav a {
  display: block; white-space: nowrap; padding: 14px 14px; text-decoration: none; font-weight: 500;
  color: var(--steel);
}
.cat-nav a:hover, .cat-nav a.is-active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--copper); }

.cat-block { padding: clamp(44px, 6vw, 72px) 0 0; scroll-margin-top: 140px; }
.cat-block:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.product { display: flex; flex-direction: column; scroll-margin-top: 140px; }
.product-img {
  aspect-ratio: 1 / 1; background: var(--panel); border-radius: var(--radius-s); overflow: hidden;
  display: grid; place-items: center;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.product-info { padding-top: 12px; }
.product-info h3 { font: 600 19px/1.25 var(--font-display); }
.product-info p { margin-top: 4px; font-size: 15px; color: var(--steel); line-height: 1.5; }
.product-ask { margin-top: 10px; }
.product-ask a { font-size: 15px; font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--copper); }

/* ---------- About page ---------- */
.prose { max-width: 42em; }
.prose p { margin-bottom: 18px; font-size: 18px; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.facts { border-top: 4px solid var(--ink); }
.facts dl { margin: 0; }
.facts .fact-row { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--steel); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 32px; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; background: var(--panel); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-info { padding-top: 14px; }
.person-info h3 { font: 700 24px/1.15 var(--font-display); }
.person-info p { color: var(--steel); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.contact-lines { border-top: 4px solid var(--ink); }
.contact-line { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-line svg { width: 24px; height: 24px; color: var(--copper); margin-top: 3px; }
.contact-line h3 { font: 600 15px/1.3 var(--font); color: var(--steel); }
.contact-line > div { min-width: 0; }
.contact-line p { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
address { font-style: normal; }
.contact-line a { text-underline-offset: 3px; }

.quote-form { background: var(--panel); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-m); }
.quote-form .form-title h2 { font: 700 30px/1.1 var(--font-display); }
.quote-form .form-note p { color: var(--steel); margin: 6px 0 20px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(31,111,209,.35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { min-height: 1.4em; margin-bottom: 8px; }
.form-error p { color: #a8261b; font-weight: 600; font-size: 15px; }

.map { margin-top: clamp(40px, 5vw, 64px); border-radius: var(--radius-m); overflow: hidden; border: 2px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1d2c; color: #c4ced8; padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-name strong { color: #fff; }
.footer-brand .brand-name small { color: #9fb0c0; }
.footer-about p { margin-top: 14px; max-width: 30em; }
.footer-col h2 { font: 600 17px/1.2 var(--font); color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: #fff; }

/* floating WhatsApp button on small screens */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff;
  display: none; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 3px solid var(--copper);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--panel); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--copper); padding-left: 12px; }

  .hero-grid, .split, .standards, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-m); }
  .range-grid { grid-template-columns: 1fr 1fr; }
  .nameplate-grid { grid-template-columns: 1fr 1fr; }
  .plate-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .plate-item { border-top: 1px solid rgba(255,255,255,.14); }
  .plate-item:nth-child(-n+2) { border-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .step:nth-child(2)::before { display: none; }
  .brand-strip { grid-template-columns: 1fr 1fr; }
  .brand-cell:nth-child(3) { border-left: 0; }
  .brand-cell:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .cat-nav { top: 79px; }
  .wa-float { display: grid; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name small { display: none; }
  .brand img { width: 44px; height: 44px; }
  .range-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .range-grid { grid-template-columns: 1fr; }
  .product-grid { gap: 20px 14px; }
  .product-info h3 { font-size: 17px; }
  .product-info > p { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .team { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .facts .fact-row { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .feeder { padding-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
