/* Cross Hose and Fittings. Utility-bar chassis, pressure-gauge hero, riveted data-plate signature. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--steel-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
svg[hidden] { display: none; }
[id] { scroll-margin-top: 96px; }
::selection { background: var(--yellow); color: var(--ink); }
html { scrollbar-color: var(--bolt) var(--steel-light); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 var(--s2); text-transform: uppercase; letter-spacing: .01em; }
h1 { font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; letter-spacing: .04em; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
a { color: var(--yellow-link); }
.dark a, .steel-dark a { color: var(--yellow-bright); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* focus */
:focus-visible { outline: 2px solid var(--yellow-link); outline-offset: 3px; border-radius: var(--radius); }
.dark :focus-visible, .utilbar :focus-visible { outline-color: var(--yellow-bright); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--steel-darker); color: var(--ink-dark); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ============ header: dark brushed-steel utility bar ============ */
.utilbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--steel-darker);
  border-bottom: 2px solid var(--yellow);
  box-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.utilbar-in {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: var(--s4);
  min-height: 66px;
}
.ub-brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.ub-name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.12rem; color: var(--ink-dark);
}
.ub-name em { font-style: normal; color: var(--yellow-bright); }
.ub-est { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }

.ub-nav { display: flex; gap: 2px; }
.ub-nav a {
  position: relative;
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  font-size: .86rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--muted-dark);
  transition: color var(--t-fast) var(--t-settle);
}
.ub-nav a:hover { color: var(--ink-dark); }
.ub-nav a[aria-current="page"] { color: var(--ink-dark); }
.ub-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 2px; background: var(--yellow);
}

.ub-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; letter-spacing: .02em;
  font-size: 1.05rem; color: var(--yellow-bright); text-decoration: none;
  min-height: 44px; white-space: nowrap;
}
.ub-phone:hover { color: var(--ink-dark); }
.ub-phone .ico { flex: none; }

.nav-toggle {
  display: none;
  border: 1px solid var(--rule-dark-strong); border-radius: var(--radius);
  background: var(--steel-dark); color: var(--ink-dark);
  font: inherit; font-size: .85rem;
  padding: 9px 12px; min-height: 44px;
  cursor: pointer; align-items: center; gap: 8px;
}
.nav-toggle .ico-shut { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-shut { display: block; }

/* ============ buttons: bolted plate, not a pill ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px 16px 30px; min-height: 54px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast) var(--t-settle), transform var(--t-fast) var(--t-settle);
}
.btn:active { transform: translateY(1px); }
.btn-plate { background: var(--yellow); color: var(--ink); }
.btn-plate:hover { background: var(--yellow-press); }
.btn-plate .bolt {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(28,31,34,.28);
}
.btn-plate .bolt.tl { top: 6px; left: 6px; }
.btn-plate .bolt.tr { top: 6px; right: 6px; }
.btn-plate .bolt.bl { bottom: 6px; left: 6px; }
.btn-plate .bolt.br { bottom: 6px; right: 6px; }

.arrowlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--yellow-link); text-decoration: none; font-size: .98rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: gap var(--t-fast) var(--t-settle);
}
.arrowlink:hover { gap: 12px; border-bottom-color: var(--yellow-link); }
.dark .arrowlink, .steel-dark .arrowlink { color: var(--yellow-bright); }
.dark .arrowlink:hover, .steel-dark .arrowlink:hover { border-bottom-color: var(--yellow-bright); }

/* ============ dark sections ============ */
.dark, .steel-dark { background: var(--steel-dark); color: var(--ink-dark); }
.dark p, .steel-dark p { color: var(--ink-dark); }
.dark .muted, .steel-dark .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }

/* ============ hero: gauge anchor ============ */
.hero {
  position: relative; isolation: isolate;
  background: var(--steel-dark);
  background-image: radial-gradient(ellipse at 78% 20%, rgba(244,196,48,.07), transparent 55%);
  overflow: clip;
}
.hero-in {
  padding: clamp(52px, 9vw, 108px) 0 clamp(44px, 7vw, 88px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.hero-copy .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--yellow-bright); margin-bottom: var(--s2); font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  color: var(--ink-dark);
  margin: 0 0 var(--s3);
  max-width: 13ch;
}
.hero-line { font-size: 1.12rem; max-width: 46ch; color: var(--muted-dark); margin-bottom: var(--s5); text-transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.hero-gauge-wrap { display: flex; justify-content: center; }
.gauge { width: min(340px, 100%); height: auto; }

/* pressure gauge SVG parts */
.gauge-face { fill: var(--steel-dark-2); stroke: var(--rule-dark-strong); stroke-width: 2; }
.gauge-rim { fill: none; stroke: var(--bolt); stroke-width: 3; }
.gauge-tick { stroke: var(--muted-dark); stroke-width: 1.5; }
.gauge-tick-major { stroke: var(--ink-dark); stroke-width: 2; }
.gauge-redline { fill: none; stroke: var(--redline); stroke-width: 4; opacity: .8; }
.gauge-needle { stroke: var(--yellow-bright); stroke-width: 3; stroke-linecap: round; transform-origin: 100px 100px; }
.gauge-hub { fill: var(--yellow-bright); }
.gauge-label { fill: var(--muted-dark); font-family: var(--display); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
html[data-anim] .gauge-needle {
  transform: rotate(-98deg);
  animation: gauge-settle 1.6s var(--t-settle) forwards;
}
html:not([data-anim]) .gauge-needle { transform: rotate(38deg); }
@keyframes gauge-settle {
  0%   { transform: rotate(-98deg); }
  55%  { transform: rotate(52deg); }
  75%  { transform: rotate(30deg); }
  100% { transform: rotate(38deg); }
}

/* ============ sections ============ */
.sec { padding: clamp(48px, 8vw, 88px) 0; }
.sec-head { margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head .kicker {
  display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--yellow-link); font-weight: 600; margin-bottom: 8px;
}
.dark .sec-head .kicker, .steel-dark .sec-head .kicker { color: var(--yellow-bright); }
.sec-head h2 { margin: 0; }
.sec-intro { max-width: 58ch; margin-bottom: var(--s4); }

/* ============ ruled spec panels: containers everywhere ============ */
.panel {
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--steel-light-2);
  padding: 22px 24px;
}
.dark .panel, .steel-dark .panel {
  background: var(--panel-dark); border-color: var(--rule-dark-strong);
}
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.panel-grid .panel { display: flex; flex-direction: column; gap: 10px; }
.panel-ico {
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--yellow-link);
}
.dark .panel-ico, .steel-dark .panel-ico { border-color: var(--rule-dark-strong); color: var(--yellow-bright); }
.panel h3 { margin: 0; }
.panel p { margin: 0; font-size: .96rem; }
.panel p:last-child { margin: 0; }

/* ============ data plate: the signature ============ */
.dataplate {
  position: relative;
  border: 1px solid var(--rule-dark-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--steel-dark-2), var(--panel-dark));
  padding: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 44px);
}
.dataplate::before, .dataplate::after,
.dataplate .rivet {
  content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9aa1a7, #3c4045 72%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 1px 1px rgba(0,0,0,.4);
}
.dataplate::before { top: 12px; left: 12px; }
.dataplate::after { top: 12px; right: 12px; }
.dataplate .rivet.bl { bottom: 12px; left: 12px; }
.dataplate .rivet.br { bottom: 12px; right: 12px; }
.dp-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2);
  border-bottom: 1px solid var(--rule-dark-strong);
  padding-bottom: 14px; margin-bottom: 18px;
}
.dp-title {
  font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .82rem; color: var(--yellow-bright); margin: 0;
}
.dp-sub { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.dp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.dp-field {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.dp-field:nth-child(odd) { border-right: 1px solid var(--rule-dark); padding-right: 20px; }
.dp-field:nth-child(even) { padding-left: 20px; }
.dp-label {
  display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 4px;
}
.dp-value { font-family: var(--display); font-size: 1.05rem; color: var(--ink-dark); letter-spacing: .01em; }
.dp-value small { display: block; font-family: var(--body); font-size: .78rem; color: var(--muted-dark); text-transform: none; letter-spacing: 0; margin-top: 2px; }
.dp-mgmt-list { margin: 0; padding: 0; list-style: none; }
.dp-mgmt-list li { margin-bottom: 4px; }
.dp-mgmt-list li:last-child { margin-bottom: 0; }

/* ============ checklist: what to have ready ============ */
.readylist { border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--steel-light-2); }
.readylist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; min-height: 44px;
  border-bottom: 1px solid var(--rule);
}
.readylist li:last-child { border-bottom: 0; }
.readylist ul { list-style: none; margin: 0; padding: 0; }
.readylist .tick {
  width: 20px; height: 20px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--yellow-link); border-radius: var(--radius);
  color: var(--yellow-link);
  display: inline-grid; place-items: center;
}
.readylist .tick svg { width: 13px; height: 13px; }

/* ============ services list ============ */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.svc-row {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--rule-strong);
}
.svc-ico {
  width: 52px; height: 52px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--yellow-link);
}
.svc-row h3 { margin: 0 0 6px; }
.svc-row p { margin: 0; font-size: .98rem; }

/* ============ CTA band ============ */
.cta-band { text-align: left; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted-dark); }

/* ============ footer ============ */
.footer { background: var(--steel-darker); color: var(--ink-dark); border-top: 3px solid var(--yellow); padding: var(--s6) 0 calc(var(--s6) + 60px); }
.foot-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--rule-dark); }
.foot-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-dark); margin: 0 0 8px; }
.foot-id p { margin: 0 0 8px; color: var(--muted-dark); font-size: .94rem; }
.foot-tels { display: flex; flex-direction: column; gap: 6px; }
.foot-tels a, .foot-fax {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px;
  color: var(--yellow-bright); text-decoration: none; font-size: .94rem;
}
.foot-fax { color: var(--muted-dark); }
.foot-tels a:hover { color: var(--ink-dark); }
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { color: var(--muted-dark); text-decoration: none; font-size: .94rem; min-height: 32px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--ink-dark); }
.foot-plate { border: 1px solid var(--rule-dark-strong); border-radius: var(--radius); padding: 14px 16px; background: var(--panel-dark); }
.foot-plate-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-bright); margin: 0 0 8px; }
.foot-plate p { margin: 0 0 4px; font-size: .88rem; color: var(--muted-dark); }
.foot-plate p:last-child { margin: 0; }
.foot-fine { padding-top: var(--s3); }
.foot-fine p { font-size: .8rem; color: var(--muted-dark); max-width: none; margin: 0 0 6px; }
.foot-fine p:last-child { margin: 0; }

/* ============ mobile call bar ============ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--steel-darker); border-top: 2px solid var(--yellow);
}
.callbar .btn { width: 100%; font-size: .92rem; min-height: 48px; padding: 10px 8px; }
.callbar.gone { display: none !important; }

/* ============ reveals ============ */
html[data-anim] .rv { opacity: 0; transform: translateY(10px); }
html[data-anim] .rv.on { opacity: 1; transform: none; transition: opacity var(--t-med) var(--t-settle), transform var(--t-med) var(--t-settle); }

/* ============ page banners (inner pages) ============ */
.banner { position: relative; isolation: isolate; background: var(--steel-dark); }
.banner .hero-in { padding: clamp(44px, 7vw, 84px) 0; grid-template-columns: 1fr; }
.banner h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22ch; color: var(--ink-dark); }
.banner-breadcrumb {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow-bright); margin-bottom: var(--s2); display: block;
}

/* ============ contact page ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.info-rows { border-top: 1px solid var(--rule-strong); margin-bottom: var(--s4); }
.info-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 2px; border-bottom: 1px solid var(--rule-strong);
}
.info-row .ico-box {
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--yellow-link);
}
.info-row .info-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-row .info-value { font-size: 1.02rem; }
.info-row .info-value a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info-row .info-value a:hover { color: var(--yellow-link); }

.field { margin-bottom: var(--s2); }
.field label { display: block; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--steel-light-2);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 12px 12px; min-height: 48px;
  transition: border-color var(--t-fast) var(--t-settle);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--yellow-link); outline-offset: 1px; background: #fff;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg {
  display: none;
  border: 1px solid var(--rule-strong); border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--steel-light-2);
  padding: 14px 16px; margin-top: var(--s2);
  font-size: .98rem;
}
.form-msg.show { display: block; }
.form-msg a { color: var(--yellow-link); white-space: nowrap; }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-gauge-wrap { order: -1; }
  .gauge { width: min(220px, 60vw); }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .dp-grid { grid-template-columns: 1fr; }
  .dp-field:nth-child(odd) { border-right: 0; padding-right: 0; }
  .dp-field:nth-child(even) { padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ub-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .ub-est { display: none; }
  .ub-name { font-size: .92rem; white-space: nowrap; }
  .utilbar-in { gap: var(--s2); flex-wrap: nowrap; }
  .nav-toggle span { display: none; }
  .nav-toggle { padding: 9px; }
  .ub-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--steel-darker); border-top: 1px solid var(--rule-dark);
    padding: 6px 16px 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,.35);
  }
  .ub-nav a { border-bottom: 1px solid var(--rule-dark); padding: 13px 4px; min-height: 48px; }
  .ub-nav a[aria-current="page"]::after { display: none; }
  .ub-phone { font-size: .92rem; }
  .callbar { display: flex; }
  .panel-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 44px 1fr; }
  [id] { scroll-margin-top: 66px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html[data-anim] .rv { opacity: 1; transform: none; }
}
