/* ==========================================================================
   KinetIQSense — site stylesheet
   Brand: accent #F58905 · slate #547296 · dark #3C4653 · ink #222425
          light #F4F5F6 · off white #FCFCFD
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette
     accent #F58905 · slate #547296 · dark #3C4653 · near black #222425
     black #141415 · light #F4F5F6 · off white #FCFCFD                       */
  --brand-dark:   #3C4653;   /* primary dark band, home hero                 */
  --brand-darker: #222425;   /* sub page heroes, closing band, footer        */
  --brand-black:  #141415;
  --brand-slate:  #547296;   /* secondary accent                             */
  --brand-tint:   #EDF0F4;   /* light slate wash, nav hover                  */
  --accent:       #F58905;
  --accent-dark:  #D97605;
  --accent-soft:  #FEF1E0;
  --surface:      #FCFCFD;
  --surface-2:    #F4F5F6;
  --ink:          #222425;
  --muted:        #5F6771;
  --line:         #E4E6E9;
  --white:        #FFFFFF;

  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(34,36,37,.06), 0 4px 14px rgba(34,36,37,.05);
  --shadow-md: 0 2px 6px rgba(34,36,37,.07), 0 18px 44px rgba(34,36,37,.09);

  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
/* height:auto is required so the HTML width/height attributes (used to reserve
   layout space) don't override the aspect-ratio rules further down. */
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; }
/* h1 and h2 share one size so every page header reads at the same weight,
   whichever page you land on. .h-match below is now the same value and stays
   defined only so existing markup keeps working. */
h1, h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.22rem); letter-spacing: -.01em; }
h4 { font-size: 1rem; }
p  { margin: 0 0 .85em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .3em; }
strong { font-weight: 700; }
sup { font-size: .52em; top: -.42em; position: relative; font-weight: 700; line-height: 0; margin-left: .04em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.wrap--narrow { width: min(800px, calc(100% - 3rem)); }
.section { padding: clamp(1.2rem, 1.95vw, 1.7rem) 0; }
.section--tight { padding: clamp(.85rem, 1.3vw, 1.15rem) 0; }
.section--alt { background: var(--surface-2); }
.section--white  { background: var(--white); }
.section--dark   { background: var(--brand-dark); color: #E7EAEE; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: #F9C892; }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: center; }
.split--rev > *:first-child { order: 2; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--brand-slate);   /* accent orange is 2.4:1 on the light surface */
  margin: 0 0 .55rem;
}
.eyebrow--slate { color: var(--brand-slate); }
.eyebrow--light { color: #FBB863; }
.lede { font-size: clamp(.99rem, 1.15vw, 1.09rem); color: var(--muted); max-width: 62ch; }
.section--dark .lede { color: #B9C2CC; }
.section-head { max-width: 68ch; margin-bottom: clamp(.9rem, 1.4vw, 1.25rem); }
.center { text-align: center; }
.center .lede, .center .section-head { margin-inline: auto; }
.rule { width: 44px; height: 3px; background: var(--accent); border: 0; border-radius: 2px; margin: 0 0 .9rem; }
.center .rule { margin-inline: auto; }
.tm { color: inherit; }
/* page headline sized to match a section heading, where the two sit close together */
.h-match { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .68rem 1.35rem;
  border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  border: 2px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
/* dark label on the accent fill: white on #F58905 is only 2.5:1 */
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-dark); color: var(--ink); }
.btn--ghost { border-color: var(--brand-dark); color: var(--brand-dark); }
.btn--ghost:hover { background: var(--brand-dark); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--brand-dark); }
/* larger variant for primary hero calls to action */
.btn--lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252,252,253,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; margin: 0; }
.nav__links a {
  display: block; padding: .45rem .6rem; border-radius: 8px;
  font-size: .87rem; font-weight: 600; color: var(--ink);
}
.nav__links a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav__links > li > a[aria-current="page"] { color: var(--brand-dark); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.subnav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
/* Products is a <button>, so the active state is driven by .is-current on the parent */
.nav__links > li.has-sub.is-current > button { color: var(--brand-dark); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav__cta { margin-left: .5rem; }

/* dropdown */
.has-sub > button {
  display: flex; align-items: center; gap: .35rem;
  padding: .45rem .6rem; border: 0; background: none; border-radius: 8px;
  font: inherit; font-size: .87rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.has-sub > button:hover { background: var(--brand-tint); color: var(--brand-dark); }
.has-sub > button svg { transition: transform .2s var(--ease); }
.has-sub[data-open="true"] > button svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 262px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease);
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub[data-open="true"] .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.subnav a { padding: .6rem .75rem; border-radius: 9px; }
.subnav a span { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); margin-top: .1rem; line-height: 1.4; }
.subnav a:hover span { color: var(--brand-dark); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { background: var(--brand-dark); color: #fff; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at 60% 40%, rgba(84,114,150,.30), transparent 62%);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; padding: clamp(1.7rem, 3vw, 2.6rem) 0; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p { color: #CBDEDE; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.hero--sub { background: var(--brand-darker); }
.hero--sub .hero__inner { padding: clamp(1.2rem, 2vw, 1.7rem) 0; grid-template-columns: 1fr; }
/* Constrain the text measure on the child, not on .hero__inner itself: that element
   also carries .wrap (margin-inline:auto), so a max-width there centred the whole
   hero and pushed it out of line with every section below it. */
.hero--sub .hero__inner > div { max-width: 840px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); color: var(--brand-dark);
  font-weight: 800; font-size: .92rem; margin-bottom: .6rem;
}
.card--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); box-shadow: none; color: #C9D0D8; }
/* headline-only cards: the statement carries the card, so give it room */
.card--claim { display: flex; align-items: center; min-height: 104px; }
.card--claim h3 { margin: 0; font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.32; }
.card--dark h3 { color: #fff; }

/* product cards */
.pcard { display: flex; flex-direction: column; overflow: hidden; padding: 0; background: #fff; }
/* 2.2:1 rather than a wider banner: the residential-home photo is close to
   square, and a taller slot lets it fill the frame without stretching. */
.pcard img { aspect-ratio: 2.2/1; object-fit: cover; width: 100%; }
.pcard__body { padding: 1.2rem 1.3rem 1.35rem; gap: 0; display: flex; flex-direction: column; flex: 1; }
/* Buttons sit on a shared baseline across tiles: margin-top:auto pushes each one
   to the bottom of an equal-height card, and the copy above carries a fixed
   bottom margin so the gap never collapses on a short tile. */
/* Reserve two lines for the tile blurb so the copy blocks match height. Combined
   with margin-top:auto on .more, both the buttons and the gap above them line up. */
.pcard__body > .note { min-height: 2.75rem; }
.pcard__body > .note:last-of-type, .pcard__body > .checks:last-of-type { margin-bottom: 1.15rem; }
.pcard__body .more {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: var(--ink);
  padding: .6rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: .88rem;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.pcard__body .more::after { content: "\2192"; }
.pcard:hover .more { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.stat { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat__n { font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 800; color: var(--brand-dark); line-height: 1.05; letter-spacing: -.02em; }
.stat__l { font-size: .86rem; color: var(--muted); margin-top: .25rem; }
/* tiles carrying a single statement instead of a figure + caption */
.stat--label { display: flex; align-items: center; min-height: 76px; }
.stat--label .stat__n { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.3; }
.section--dark .stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.section--dark .stat__n { color: #FBB863; }
.section--dark .stat__l { color: #B9C2CC; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.step { position: relative; padding: 1.2rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
/* steps keep dark text even inside a teal section */
.section--dark .step h4 { color: var(--ink); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -14px; left: 1.4rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}
.step h4 { margin: .4rem 0 .35rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Feature list ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.55rem; margin-bottom: .42rem; font-size: .93rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.checks--dark li::before { background: #FBB863; }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.pills li {
  margin: 0; padding: .32rem .8rem; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-dark);
  font-size: .82rem; font-weight: 600;
}
.section--dark .pills li { background: rgba(255,255,255,.12); color: #E7EAEE; }

/* ---------- Comparison table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
table.cmp th, table.cmp td { padding: .68rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9rem; }
table.cmp thead th { background: var(--surface-2); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 700; width: 26%; }
table.cmp .col-kiq { background: rgba(245,137,5,.05); }

/* ---------- Callout / note ---------- */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: .9rem 1.15rem; font-size: .9rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.note { font-size: .88rem; color: var(--muted); }

/* sample clinical note */
.note-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.note-card__bar { background: var(--brand-dark); color: #fff; padding: .8rem 1.4rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.note-card__body { padding: 1.5rem 1.6rem; }
.note-card__body h4 { color: var(--brand-dark); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 1.3rem 0 .5rem; }
.note-card__body h4:first-child { margin-top: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.1rem; text-align: center; box-shadow: var(--shadow-sm); }
.member img {
  width: 104px; height: 104px; border-radius: 50%; object-fit: contain;
  margin: 0 auto .7rem; background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent);
}
.member__name { font-size: 1.05rem; font-weight: 800; margin: 0 0 .1rem; }
.member__role { font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.member__bio { font-size: .88rem; color: var(--muted); text-align: left; margin: 0 0 1rem; }
.member__mail { font-size: .8rem; font-weight: 600; word-break: break-all; }
.bio-placeholder {
  border: 1px dashed var(--line); background: var(--surface); border-radius: 10px;
  padding: .65rem .8rem; font-size: .82rem; color: var(--muted); text-align: left;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-darker); color: #fff; padding: clamp(1.05rem, 1.6vw, 1.45rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B9C2CC; max-width: 58ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-darker); color: #A2ADB9; padding: 1.3rem 0 .85rem; font-size: .8rem; }
.site-footer img { height: 20px; width: auto; margin-bottom: .45rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 1.5rem; }
.site-footer h4 { color: #fff; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .18rem; }
.site-footer a { color: #A2ADB9; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  font-size: .78rem;
  margin-top: 1rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem;
}

/* ---------- Image treatments ---------- */
.img-round { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
/* Cap media height so a portrait image never eats a whole screen. width:auto keeps
   the full frame visible (shrinks rather than crops). */
.split img { max-height: 275px; width: auto; margin-inline: auto; }
.hero__media img { max-height: 300px; width: auto; margin-left: auto; }
.img-tall { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.img-wide { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* Placeholder banner for artwork still to be sourced. The label lives in the
   data-flag attribute so the note travels with the markup, not the stylesheet. */
.img-flag { position: relative; display: block; }
.img-flag::before {
  content: attr(data-flag);
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  background: var(--accent); color: var(--ink);
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem .9rem; border-radius: 14px 14px 0 0; text-align: center;
}

/* ---------- Capability chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  display: inline-flex; align-items: baseline; gap: .55rem;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: .55rem 1.05rem; font-size: .92rem; font-weight: 600; color: #fff;
}
.chips li span { font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: #9BA6B3; margin-bottom: 1.2rem; }
.crumbs a { color: #9BA6B3; } .crumbs a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split img, .hero__media img { max-height: none; width: 100%; }
  .hero__inner, .split { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .75rem 1.5rem 1.25rem; box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { display: flex; }
  .nav__links > li { width: 100%; }
  .nav__links a, .has-sub > button { width: 100%; padding: .8rem .4rem; }
  .nav__links > li.has-sub.is-current > button { box-shadow: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 .5rem .4rem; padding: 0 0 0 .6rem;
    display: none;
  }
  .has-sub[data-open="true"] .subnav { display: block; }
  .nav__cta { margin: .75rem 0 0; }
  .nav { position: relative; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .steps, .stats, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
