/* ==========================================================================
   InfiniPower Systems Inc. — site stylesheet
   Colour tokens are taken directly from the brand kit README.
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #071B2D;  /* Deep current  */
  --ink-2:      #0F2B41;
  --ink-3:      #163B52;
  --mint:       #39E6A2;  /* Energy mint   */
  --sky:        #69C9FF;  /* Signal blue   */
  --paper:      #F3F8F6;  /* Paper         */
  --paper-2:    #E5F0EC;
  --teal:       #187C84;  /* light-bg mark accent */

  /* Neutrals */
  --text:       #0C1F2E;
  --text-soft:  #4A616D;
  --text-mute:  #6B8189;
  --rule:       #D3E1DC;
  --rule-dark:  rgba(105, 201, 255, .18);
  --white:      #FFFFFF;

  /* Type */
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --wrap: 1200px;
  --gut: 24px;
  --radius: 4px;
  --nav-h: 84px;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); letter-spacing: -.028em; }
h3 { font-size: 1.16rem; letter-spacing: -.015em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--mint); color: var(--ink); padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Eyebrow / busbar rule --------------------------------------------
   The hairline + node is a busbar motif: it reappears above every
   section heading so the page reads as one continuous run.           */
.eyebrow {
  font-family: var(--mono);
  font-size: .705rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  flex: none;
}
.on-dark .eyebrow { color: var(--mint); }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display);
  font-size: .93rem; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #5DF0B6; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.on-dark .btn-outline { color: var(--paper); border-color: var(--rule-dark); }
.on-dark .btn-outline:hover { border-color: var(--sky); color: var(--sky); }
.btn-sm { padding: 9px 15px; font-size: .84rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 54px; width: auto; display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-family: var(--display);
  font-size: .93rem; font-weight: 500;
  color: #C4D6DE;
  text-decoration: none;
  padding: 9px 13px;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav a:not(.btn):hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a:not(.btn)[aria-current="page"] { color: var(--mint); }
.nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--rule-dark);
  border-radius: var(--radius); color: var(--paper);
  padding: 9px 12px; cursor: pointer;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
}

@media (max-width: 900px) {
  .brand img { height: 42px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ink); padding: 16px var(--gut) 26px;
    border-bottom: 1px solid var(--rule-dark);
    margin-left: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
}

/* --- Sections ---------------------------------------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 62px 0; }
.on-dark { background: var(--ink); color: #C9DCE4; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }
.tint { background: var(--paper-2); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head p { color: var(--text-soft); font-size: 1.04rem; }
.on-dark .section-head p { color: #9FBAC5; }

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #BDD3DC;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-dark);
}
/* Faint technical grid, sized to a 40px module */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(105,201,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,201,255,.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 72% 45%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 68px 0 54px;
}
.hero-copy { max-width: 690px; }
.hero h1 { color: var(--paper); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-sub {
  font-size: 1.09rem; color: #9FBAC5; max-width: 48ch; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0 40px;
  border-top: 1px solid var(--rule-dark); padding-top: 22px;
}
.hero-facts div { padding-right: 12px; }
.hero-facts dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 5px;
}
.hero-facts dd {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: 1.02rem; color: var(--paper);
}
.chain { margin: 42px 0 34px; }
.chain-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.chain-svg { display: block; width: 100%; min-width: 940px; height: auto; }
.chain figcaption {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sky); margin-top: 14px;
}
.chain-hint { display: none; }

@media (max-width: 940px) {
  .hero-inner { padding: 56px 0 50px; }
  .chain { margin: 38px 0 34px; }
  .chain-scroll { margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .chain-hint { display: block; }
}

/* --- Pillars ----------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pillar { background: var(--white); padding: 30px 26px 32px; }
.pillar-mark { color: var(--teal); margin-bottom: 16px; display: block; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: .935rem; color: var(--text-soft); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* --- Category tiles ---------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tile:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(7,27,45,.45); }
.tile-art { background: var(--paper-2); padding: 26px; display: flex; justify-content: center; }
.tile-art svg { height: 132px; width: auto; }
.tile-body { padding: 22px 24px 26px; }
.tile-body h3 { margin-bottom: 7px; }
.tile-body p { font-size: .925rem; color: var(--text-soft); margin-bottom: 14px; }
.tile-more { font-family: var(--mono); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); }

/* --- Industries -------------------------------------------------------- */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
.industry { background: var(--ink); padding: 26px 24px 28px; }
.industry-no { font-family: var(--mono); font-size: .7rem; color: var(--sky); letter-spacing: .14em; display: block; margin-bottom: 12px; }
.industry h3 { font-size: 1.04rem; margin-bottom: 6px; }
.industry p { font-size: .9rem; color: #8FA9B5; }

/* --- Split feature ----------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 52px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding: 14px 0 14px 30px;
  border-top: 1px solid var(--rule);
  font-size: .97rem;
}
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist li::before {
  content: ""; position: absolute; left: 3px; top: 23px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px rgba(57,230,162,.2);
}
.on-dark .checklist li { border-color: var(--rule-dark); }

/* --- Nameplate: the signature element ---------------------------------
   Modelled on the stamped rating plate riveted to real apparatus.     */
.nameplate {
  font-family: var(--mono);
  background: var(--ink);
  color: #BDD3DC;
  border-radius: 3px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px 14px;
  border: 1px solid var(--ink-3);
  box-shadow: inset 0 0 0 1px rgba(105,201,255,.09);
}
.nameplate div { min-width: 0; }
.nameplate dt {
  font-size: .61rem; letter-spacing: .15em; text-transform: uppercase;
  color: #6E93A5; margin-bottom: 3px;
}
.nameplate dd {
  margin: 0; font-size: .78rem; color: var(--mint); line-height: 1.35;
  overflow-wrap: break-word;
}

/* --- Catalogue --------------------------------------------------------- */
.catalogue { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 44px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 24px); }
.filters h2 { font-size: .78rem; font-family: var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.filter-list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--rule); }
.filter-list li { border-bottom: 1px solid var(--rule); }
.filter-btn {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 11px 2px; cursor: pointer;
  font-family: var(--display); font-size: .94rem; font-weight: 500; color: var(--text-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: color .15s ease;
}
.filter-btn:hover { color: var(--teal); }
.filter-btn .count { font-family: var(--mono); font-size: .74rem; color: var(--text-mute); }
.filter-btn[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.filter-btn[aria-pressed="true"] .count { color: var(--teal); }

.result-line {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em;
  color: var(--text-mute); margin-bottom: 18px;
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: #B6CEC7; box-shadow: 0 10px 28px -20px rgba(7,27,45,.5); }
.card-art { background: var(--paper-2); padding: 24px; display: flex; justify-content: center; border-bottom: 1px solid var(--rule); }
.card-art svg { height: 118px; width: auto; }
.card-body { padding: 20px 20px 0; flex: 1; }
.card-cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 9px; }
.card-body h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card-body p { font-size: .9rem; color: var(--text-soft); margin-bottom: 16px; }
.card-plate { padding: 0 20px 18px; }
.card-actions { display: flex; gap: 9px; padding: 0 20px 20px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 auto; justify-content: center; }
.ds-note {
  font-family: var(--mono); font-size: .72rem; color: var(--text-mute);
  align-self: center; padding: 9px 4px;
}
@media (max-width: 860px) {
  .catalogue { grid-template-columns: 1fr; gap: 26px; }
  .filters { position: static; }
  .filter-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 18px; }
}

/* --- Services ---------------------------------------------------------- */
.service-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px; align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-step {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--teal); padding-top: 5px;
}
.service-row h3 { font-size: 1.3rem; }
.service-row p { color: var(--text-soft); font-size: .97rem; }
.service-row ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: .93rem; }
.service-row li { margin-bottom: 6px; }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-step { padding-top: 0; }
}

/* --- Stat band --------------------------------------------------------- */
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.standard { border-left: 2px solid var(--mint); padding-left: 16px; }
.standard strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--paper); letter-spacing: -.02em; }
.standard span { font-size: .88rem; color: #8FA9B5; }

/* --- CTA band ---------------------------------------------------------- */
.cta-band {
  background: var(--ink-2);
  border-top: 1px solid var(--rule-dark);
  padding: 68px 0;
}
.cta-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-inner h2 { margin-bottom: 6px; color: var(--paper); }
.cta-inner p { color: #9FBAC5; margin: 0; }

/* --- Forms ------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; gap: 40px; } }

.rfq { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } .rfq { padding: 22px; } }
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 7px;
}
.field .req { color: var(--teal); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .97rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 11px 13px; width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--white); border-color: var(--teal); outline: none;
  box-shadow: 0 0 0 3px rgba(24,124,132,.13);
}
.field-hint { font-size: .83rem; color: var(--text-mute); margin-top: 7px; }
.form-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-status {
  font-size: .92rem; margin-top: 18px; padding: 13px 15px;
  border-radius: var(--radius); display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(57,230,162,.14); border: 1px solid rgba(24,124,132,.35); color: #0D5A50; }
.form-status.err { background: #FDECEC; border: 1px solid #E7B9B9; color: #8C2C2C; }

/* --- Contact panel ----------------------------------------------------- */
.contact-panel { background: var(--ink); border-radius: var(--radius); padding: 30px 28px; color: #BDD3DC; }
.contact-panel h2 { color: var(--paper); font-size: 1.2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--rule-dark); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list dt {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 5px;
}
.contact-list dd { margin: 0; font-size: .97rem; color: var(--paper); }
.contact-list a { color: var(--mint); text-decoration: none; overflow-wrap: break-word; }
.contact-list a:hover { text-decoration: underline; }

/* --- Prose ------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); }
.lead { font-size: 1.15rem; color: var(--text); }

/* --- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #7F9AA6; padding: 58px 0 30px; border-top: 1px solid var(--rule-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 56px; width: auto; margin: 0 0 18px; }
.footer-brand p { font-size: .89rem; max-width: 34ch; }
.footer-col h3 {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 14px; font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #A9C1CB; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--mint); }
.linkedin { display: inline-flex; align-items: center; gap: 9px; margin-top: 4px; }
.linkedin svg { flex: none; }
.footer-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: #5E7C89;
}

/* --- Motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .btn:hover, .tile:hover { transform: none; }
}
