/* ClimateSystem HQ - shared styles */
:root {
  --ink: #0F1E2E;
  --ink-2: #1B2D40;
  --blue: #1A5FA6;
  --blue-dark: #134A82;
  --orange: #A8471A;
  --blue-tint: #E6EFF8;
  --orange-tint: #FBEBE2;
  --ground: #F3F5F7;
  --white: #FFFFFF;
  --text: #1C2733;
  --muted: #4A5866;
  --line: #D5DCE3;
  --on-ink: #E9EEF3;
  --on-ink-muted: #B9C6D3;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ground);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header and nav: always visible, wraps on phones, no JS needed */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 230px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 8px 10px; border-radius: 6px; font-size: 0.97rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-tint); color: var(--ink); }
.nav a.btn { padding: 8px 14px; margin-left: 4px; }
.nav a.btn:hover { background: var(--blue-dark); color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  text-decoration: none; font-weight: 600; border: 2px solid var(--blue);
  padding: 12px 20px; border-radius: 8px; font-size: 1rem; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-dark); border-color: var(--blue-dark); }
.on-ink .btn-ghost { color: var(--white); border-color: var(--on-ink-muted); }
.on-ink .btn-ghost:hover { background: var(--ink-2); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
section { padding: 72px 0; }
.section-white { background: var(--white); }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--white); }
.on-ink a:not(.btn) { color: var(--blue-tint); }
.on-ink .muted { color: var(--on-ink-muted); }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.on-ink .eyebrow { color: #F0A57D; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.on-ink .lead { color: var(--on-ink-muted); }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 84px 0 76px; }
.hero h1 { max-width: 18em; }
.hero .lead { margin-bottom: 1.5em; }
.note { font-size: 0.95rem; margin-top: 18px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.section-white .card { background: var(--ground); }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 10px;
  border-radius: 999px; margin-bottom: 10px;
}
.tag-cool { background: var(--blue-tint); color: var(--blue-dark); }
.tag-warm { background: var(--orange-tint); color: var(--orange); }
.card-cool { border-top: 4px solid var(--blue); }
.card-warm { border-top: 4px solid var(--orange); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--blue);
}
.card-warm .ticks li::before { background: var(--orange); }

.feature-group { margin-top: 44px; }
.feature-group > h3 { font-size: 1.3rem; margin-bottom: 16px; }

/* Fit-with panel */
.fit { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.fit .card { background: var(--ink-2); border-color: #2C415A; color: var(--on-ink); }
.fit .card h3 { color: var(--white); }

/* CTA band */
.cta { text-align: left; }
.cta-box {
  background: var(--orange-tint); border: 1px solid #F0C9B3; border-radius: var(--radius);
  padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta-box h2 { margin-bottom: 6px; }
.cta-box p { margin: 0; color: var(--text); max-width: 40em; }

/* Prose pages */
.page-head { padding: 56px 0 36px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose-wrap { background: var(--white); padding: 48px 0 72px; }
.dated { font-weight: 600; color: var(--ink); }
.callout {
  background: var(--blue-tint); border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 1.2em 0;
}
.callout-warm { background: var(--orange-tint); border-left-color: var(--orange); }

/* FAQ */
details {
  background: var(--ground); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 18px; margin-bottom: 10px;
}
details[open] { background: var(--white); }
summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
}
details p { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { border-top: 1px solid #2C415A; margin-top: 32px; padding-top: 18px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 52px; }
  .brand img { width: 200px; }
  .site-header { position: static; }
  .nav { width: 100%; }
  .nav a { padding: 8px 8px; }
  .cta-box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
