/* Shared site chrome — header, footer, layout primitives */
/* colors_and_type.css is loaded directly via <link> in head-meta.php so it
   gets its own cache-busted URL (?v=filemtime). Don't @import it here. */

/* SKIP-TO-CONTENT (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--hcoms-ink);
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 150ms ease-out;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--hcoms-blue);
  outline-offset: 2px;
}

/* SITE HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,249,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hcoms-grey-200);
}
.site-header .inner {
  max-width: 1240px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.site-header .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em;
  color: var(--hcoms-ink); font-size: 22px; text-decoration: none;
}
.site-header .brand .stop { color: var(--hcoms-blue); }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a {
  color: var(--hcoms-grey-700); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 150ms ease-out;
}
.site-header nav a:hover, .site-header nav a.active { color: var(--hcoms-ink); }

/* Products dropdown — opens on hover or keyboard focus */
.site-header .has-dropdown { position: relative; display: inline-block; }
.site-header .has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.site-header .has-dropdown .caret {
  font-size: 9px; line-height: 1; color: var(--hcoms-grey-500);
  transition: transform 150ms ease-out, color 150ms ease-out;
}
.site-header .has-dropdown:hover > a .caret,
.site-header .has-dropdown:focus-within > a .caret { transform: rotate(180deg); color: var(--hcoms-ink); }
.site-header .dropdown {
  position: absolute; top: calc(100% + 12px); left: -16px; min-width: 320px;
  background: var(--hcoms-white); border: 1px solid var(--hcoms-grey-200);
  border-radius: 12px; padding: 8px;
  box-shadow: 0 1px 0 rgba(20,20,30,0.02), 0 24px 60px -16px rgba(20,20,30,0.18);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 150ms;
  z-index: 60;
}
.site-header .has-dropdown:hover .dropdown,
.site-header .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* Invisible hover bridge so the menu doesn't snap shut crossing the gap */
.site-header .dropdown::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.site-header .dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--hcoms-ink); font-size: 14px; font-weight: 600;
}
.site-header .dropdown a:hover { background: var(--hcoms-grey-50); color: var(--hcoms-ink); }
.site-header .dropdown .dd-name { color: var(--hcoms-ink); font-weight: 600; }
.site-header .dropdown .dd-sub {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--hcoms-grey-500);
}
.site-header .dropdown .dd-sep { height: 1px; background: var(--hcoms-grey-200); margin: 6px 4px; }
.site-header .dropdown .dd-all .dd-name { color: var(--hcoms-blue-700); }

/* On narrow viewports the dropdown becomes inline (no popup) so touch users
   can still reach the children without a hover trap. */
@media (max-width: 720px) {
  .site-header .has-dropdown .caret { display: none; }
  .site-header .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0; min-width: 0;
    background: transparent; margin-top: 4px;
  }
  .site-header .dropdown a { padding: 6px 0; font-size: 13px; }
  .site-header .dropdown .dd-sub { display: none; }
  .site-header .dropdown .dd-sep { display: none; }
}
.site-header .cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; background: var(--hcoms-ink); color: white;
  border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none;
}
.site-header .cta:hover { background: var(--hcoms-grey-900); }

/* SITE FOOTER */
.site-footer {
  background: var(--hcoms-ink); color: rgba(255,255,255,0.7);
  margin-top: 120px; padding: 80px 32px 40px;
}
.site-footer .inner { max-width: 1240px; margin: 0 auto; }
.site-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .brand-col .wordmark {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em;
  color: white; font-size: 32px;
}
.site-footer .brand-col .wordmark .stop { color: var(--hcoms-blue); }
.site-footer .brand-col p {
  font-size: 14px; line-height: 1.6; max-width: 360px; margin: 16px 0 0;
}
.site-footer h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.site-footer li a:hover { color: white; }
.site-footer .legal {
  padding-top: 28px; display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}

html, body { overflow-x: hidden; max-width: 100%; }
* { box-sizing: border-box; }

/* PAGE PRIMITIVES */
.page-wrap { max-width: 1240px; margin: 0 auto; padding: 80px 32px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hcoms-blue);
}
h1.page-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.96;
  letter-spacing: -0.045em; margin: 18px 0 0;
}
.lead { font-size: 19px; color: var(--hcoms-grey-700); line-height: 1.55; max-width: 640px; }

/* GLOBAL CTA BUTTONS */
.btn { display:inline-flex; align-items:center; gap:8px; padding:11px 18px; border-radius:8px; font-weight:600; font-size:14px; text-decoration:none; font-family:var(--font-body); border: none; cursor: pointer; transition: background 150ms ease-out; }
.btn-primary { background: var(--hcoms-blue); color: white; }
.btn-primary:hover { background: var(--hcoms-blue-600); }
.btn-ink { background: var(--hcoms-ink); color: white; }
.btn-ink:hover { background: var(--hcoms-grey-900); }
.btn-secondary { background: white; color: var(--hcoms-ink); border: 1px solid var(--hcoms-grey-300); }
.btn-secondary:hover { background: var(--hcoms-grey-50); }

/* PILLS */
.pill { display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 12px; border-radius:999px; font-size:11px; font-weight:600; }
.pill .dot { width:6px; height:6px; border-radius:50%; }
.pill-good { background: rgba(0,168,107,0.12); color:#00754B; } .pill-good .dot { background:#00A86B; }
.pill-info { background: var(--hcoms-blue-50); color: var(--hcoms-blue-700); } .pill-info .dot { background: var(--hcoms-blue); }
