/* ============================================================================
   hpcf_website — refresh.css   (facelift + responsive correctness layer)
   ----------------------------------------------------------------------------
   Loaded AFTER css/style.css on every page. style.css stays untouched so this
   layer can be reviewed/reset independently. Equal-specificity rules here win
   purely by cascade order.
   Sections:
     1. Design tokens & base typography
     2. Header / navigation (incl. fix for 992–1199px menu overflow)
     3. Hero + inner-page banner
     4. Section rhythm & section titles
     5. Buttons
     6. Cards, services, pricing, team, counters
     7. Contact page
     8. Footer
     9. Status board
    10. Access-policy page specifics
    11. Accessibility & motion
    12. Breakpoint sanity fixes (the actual resolution breakage)
   ========================================================================== */

/* == 1. Design tokens & base typography ==================================== */
:root {
  --c-primary: #28abe3;
  --c-primary-700: #1d8cc0;
  --c-primary-050: #eaf7fd;
  --c-ink: #16283c;
  --c-body: #4e5a66;
  --c-muted: #75818d;
  --c-surface: #ffffff;
  --c-bg-soft: #f5f8fb;
  --c-border: #e3eaf0;
  --c-navy: #002a5c;
  --c-dark: #101820;

  --header-h: 84px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(15, 35, 60, 0.08);
  --shadow-md: 0 6px 24px rgba(15, 35, 60, 0.10);
  --shadow-lg: 0 18px 44px rgba(15, 35, 60, 0.16);

  --font-head: "Sora", "Catamaran", sans-serif;
  --font-body: "Inter", "Source Sans Pro", sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-surface);
}

p {
  font-family: var(--font-body);
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

a { color: var(--c-primary); }
a:hover, a:focus { color: var(--c-primary-700); }

::selection { background: rgba(40, 171, 227, 0.25); }

img { max-width: 100%; }

small, figcaption { color: var(--c-muted); }

/* == 2. Header / navigation ================================================ */
header.navigation {
  padding: 0.5rem 0;
}

.navbar-brand.logo img {
  height: clamp(40px, 4vw, 58px);
  width: auto;
}

/* Desktop (>=1200px): unchanged white-on-transparent, but cleaner spacing */
@media (min-width: 1200px) {
  .navigation .navbar-light .navbar-nav .nav-item .nav-link {
    padding: 22px 14px;
    font-size: 14px;
    letter-spacing: 0.6px;
  }
}

/* FIX: menu used to overflow its bar between 992–1199px ("SUPPORT" cut off).
   Collapse threshold is now xl (1200px); everything below renders the
   hamburger + panel, styled like Bootstrap's <=991px mobile bar. */
@media (max-width: 1199.98px) {
  .navigation {
    background: #fff;
    opacity: 1; /* the docs asset copy carried a stray 70% here — force solid */
    box-shadow: 0 1px 0 rgba(15, 35, 60, 0.06);
  }
  .navigation .logo-white { display: none; }
  .navigation .logo-default { display: block; }
  .navigation .navbar-light .navbar-nav .nav-item .nav-link {
    color: var(--c-ink);
    padding: 10px 14px !important;
    font-size: 15px;
  }
  .navigation .navbar-light .navbar-nav .nav-item .nav-link:hover,
  .navigation .navbar-light .navbar-nav .nav-item.active .nav-link {
    color: var(--c-primary);
  }
  /* opened panel */
  .navigation .navbar-collapse {
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 0.5rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
  }
}

.navigation .navbar-toggler {
  border: 0;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
}
.navigation .navbar-toggler:focus { outline: 0; box-shadow: 0 0 0 3px rgba(40, 171, 227, 0.35); }

.navigation.sticky-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  box-shadow: var(--shadow-md);
}

/* == 3. Hero + inner-page banner =========================================== */
/* dark bands: global heading colour would bleed in and break contrast */
.hero-area .block h1, .hero-area .block h2, .hero-area .block h3,
.hero-area .block h4, .hero-area .block p,
.call-to-action h1, .call-to-action h2, .call-to-action h3,
.call-to-action-2 h1, .call-to-action-2 h2, .call-to-action-2 h3,
.funding-acknowledgment p {
  color: #fff;
}
.hero-area {
  height: auto;
  min-height: 92vh;
  padding: calc(var(--header-h) + 64px) 0 calc(var(--header-h) + 48px);
  background-image: url("../images/slider/servers-1600.webp");
  background-color: var(--c-dark);  /* dark fallback while the image paints */
  align-items: center;
}

@media (max-width: 767.98px) {
  .hero-area {
    min-height: 86vh;
    padding: calc(var(--header-h) + 40px) 0 56px;
    background-image: url("../images/slider/servers-900.webp");
    background-position: center top;
  }
  :root { --header-h: 64px; }
}

/* neutralise the old per-breakpoint margin hacks */
.hero-area .container { margin-top: 0 !important; }

.hero-area .block h1 {
  font-size: clamp(30px, 5.4vw, 46px); /* was a fixed 60px — overflowed 390px phones */
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-area .block p {
  width: auto;
  max-width: 62ch;
  margin: 0 auto 20px;
}

.hero-title-sm {
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.15;
}

.single-page-header {
  background-image: url("../images/about/about-header-1600.webp");
  background-color: var(--c-navy);   /* dark fallback while the image paints */
  padding: calc(var(--header-h) + 46px) 0 42px;
}

@media (max-width: 767.98px) {
  .single-page-header {
    background-image: url("../images/about/about-header-960.webp");
    padding: calc(var(--header-h) + 30px) 0 30px;
    text-align: left;
  }
  .single-page-header h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
}

.single-page-header h2,
.single-page-header h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: #fff;
  margin-bottom: 6px;
}

.header-bradcrumb {
  min-height: 20px;
}

/* == 4. Section rhythm & section titles ==================================== */
.section { padding: 72px 0; }
.section-sm { padding: 52px 0; }
.section-xs { padding: 34px 0; }
.call-to-action,
.call-to-action-2 { padding: 72px 0; }
.team { padding: 64px 0; }

@media (max-width: 767.98px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .call-to-action,
  .call-to-action-2 { padding: 48px 0; }
  .team { padding: 42px 0; }
}

.title { padding-bottom: 36px; }
.title2 { padding-bottom: 36px; padding-top: 36px; }

@media (max-width: 767.98px) {
  .title, .title2 { padding-bottom: 26px; }
  .title2 { padding-top: 0; }
}

.title h2 { font-size: clamp(24px, 3.2vw, 32px); }

/* was width: 50% — unreadably narrow on phones */
.title p {
  width: auto;
  max-width: 62ch;
  margin: 0 auto;
}

.bg-gray { background: var(--c-bg-soft); }

.border.section-border { background: var(--c-primary); }

/* == 5. Buttons ============================================================ */
.btn-main {
  background: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 10px rgba(40, 171, 227, 0.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-main:hover,
.btn-main:focus {
  background: var(--c-primary-700);
  border-color: var(--c-primary-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 171, 227, 0.35);
}

.cta-btn { min-width: 180px; }

.btn-transparent {
  border-radius: var(--radius);
  padding: 13px 30px;
  font-weight: 600;
}
.btn-transparent:hover { background: rgba(255, 255, 255, 0.12); }

.contact-form #contact-submit {
  border-radius: var(--radius);
}

/* == 6. Cards, services, pricing, team, counters =========================== */
.card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card .card-header { border-bottom: 1px solid var(--c-border); }

/* fixed 270px made cards clip; content decides now */
.services .service-block {
  height: auto;
  min-height: 240px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (max-width: 767.98px) {
  .services .service-block { min-height: 0; }
}
.services .service-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-2 .service-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-2 .service-item:hover {
  box-shadow: var(--shadow-md);
}

/* services rhythm + small inline CTA used on services.html */
.services { padding: 56px 0 30px; }
@media (max-width: 767.98px) {
  .services { padding: 34px 0 22px; }
  .services > .container > .row.align-items-center.mb-5 { margin-bottom: 1.25rem !important; }
}
.btn-main-sm {
  background: var(--c-primary);
  border-radius: var(--radius);
  color: #fff;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-top: 4px;
  padding: 9px 20px;
  transition: transform .18s ease, background .18s ease;
}
.btn-main-sm:hover {
  background: var(--c-primary-700);
  color: #fff;
  transform: translateY(-2px);
}

/* was height: 650px fixed — clipped content on phones */
.pricing-table .pricing-item {
  height: auto;
  border: 1px solid #e8edf2;
  border-radius: var(--radius-lg);
  padding: 34px 28px 42px;
  box-shadow: var(--shadow-md);
}

.team .team-member {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.team .team-member:hover { box-shadow: var(--shadow-md); }

/* team split: two groups (head / associates), uniform card sizes */
/* .team-group sits inside the section .row as a flex item — force it to span */
.team .team-group { flex: 0 0 100%; max-width: 100%; }
.team-group + .team-group { margin-top: 36px; }
.team-group-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: center;
  margin-bottom: 22px;
}
.team .member-photo {
  aspect-ratio: 1 / 1;             /* every card gets the same photo box */
  border-bottom: 1px solid var(--c-border);
}
.team .member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team .member-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 14px 20px;
}
.team .member-content span { color: var(--c-muted); }
.team .row > div { padding-left: 8px; padding-right: 8px; }
.team .row { margin-left: -8px; margin-right: -8px; }
@media (max-width: 575.98px) {
  .team-group + .team-group { margin-top: 26px; }
}

.counters-item span { color: var(--c-primary); }
.counters-item h3 { color: var(--c-body); font-size: 17px; }

/* funding acknowledgment band (index/about/contact) */
.funding-acknowledgment .mt-4 img {
  margin: 0 auto;
}
@media (max-width: 575.98px) {
  .funding-acknowledgment .mt-4 img {
    max-height: 84px;
    padding: 10px 14px;
  }
}

/* == 7. Contact page ======================================================= */
.contact-us { padding: 56px 0 40px; }
@media (max-width: 767.98px) {
  .contact-us { padding: 34px 0 28px; }
  .contact-us .title { padding-bottom: 18px; }
}
/* the template only colours .title h2 for some sections — contact fell through
   to the white-on-white default */
.contact-us .title h2 { color: var(--c-ink); }
.contact-form .form-control {
  border-radius: var(--radius-sm);
  font-size: 16px;             /* prevents iOS zoom-on-focus */
  font-family: var(--font-body);
  padding: 10px 14px;
  height: auto !important;
  min-height: 46px;
}
.contact-form textarea.form-control { min-height: 130px; }

/* keyless iframe map */
.google-map { border: 0; padding: 0; margin: 0; }
.google-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(0.9);
}
@media (max-width: 575.98px) {
  .google-map iframe { height: 300px; }
}
.map-caption {
  text-align: center;
  font-size: 13.5px;
  color: var(--c-muted);
  padding: 10px 16px 0;
}

/* == 8. Footer ============================================================= */
.top-footer {
  background-color: var(--c-dark);
  padding: 56px 0 44px;
}
.top-footer h3 {
  font-size: 13px;
  letter-spacing: 1.2px;
  color: #9fb3c8;
  margin-bottom: 14px;
}
.top-footer li a {
  font-size: 14px;
  color: #c5ced8;
  line-height: 26px;
  letter-spacing: 0.2px;
}
.top-footer li a:hover { color: var(--c-primary); }

.footer-bottom { background-color: #0c1117; padding: 22px 0; }
.footer-bottom h5 {
  font-size: 12px;
  letter-spacing: 1px;
  color: #8b98a8;
  margin: 0 0 4px;
}
.footer-bottom h6 {
  font-size: 11.5px;
  color: #8b98a8;
  margin: 0;
}
.footer-bottom a { color: #7fc9ec; }
.footer-bottom a:hover { color: #aadaf4; }

/* == 9b. Docs TOC button — original mkdocs button, placed to the right of
   the brand logo. It is inside the nav flex row, so keep [logo][button]
   ......... [hamburger] (Bootstrap's space-between would center the logo). */
@media (max-width: 1199.98px) {
  header.navigation.has-toc nav.navbar { justify-content: flex-start; }
  header.navigation.has-toc .navbar-toggler { margin-left: auto; }
}

/* == 9c. Docs content parity (mkdocs .md-typeset / .md-grid) =============== */
/* site-wide typography parity: base was a fixed 0.8rem that shrank further
   in narrow/portrait windows */
.md-typeset.md-typeset {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--c-body);
}
.md-content .md-typeset h1 {
  color: var(--c-ink);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  font-family: var(--font-head);
}
.md-content .md-typeset h2 { font-weight: 600; }
.md-typeset a { color: var(--c-primary); }
.md-typeset a:hover, .md-typeset a:focus { color: var(--c-primary-700); }
/* carried over from the retired documentation/assets/css/style.css copy */
.md-typeset ol { list-style: decimal !important; }
.md-sidebar { top: 4rem !important; }

/* filesystem-style path of the page inside the docs tree (banner breadcrumb) —
   RETIRED: replaced by the horizontal section menu below */
.single-page-header .breadcrumb {
  min-height: 0;
  padding: 0;
  margin-bottom: 2px;
  list-style: none;
}

/* == 9c-2. Docs subheader: horizontal section menu ========================= */
/* GitLab-docs style top-of-content menu built from the docs nav top level */
.docs-subheader {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 90;
}
.subheader-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;           /* every strip item shares one height */
  white-space: nowrap;
  overflow: visible;              /* the dropdown must escape the strip */
  gap: 0 8px;
  margin: 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
}
.subheader-menu > li {
  display: flex;                  /* keep all items equal-height on the strip */
  align-items: stretch;
}
.subheader-menu > li > a,
.subheader-menu .subnav-drop > summary {
  display: flex;                  /* flex centers any content at one height */
  align-items: center;
  padding: 0 16px;
  min-height: 46px;               /* one shared item height */
  color: var(--c-body);
  border-bottom: 2px solid transparent;
}
.subheader-menu a:hover,
.subheader-menu a:focus {
  color: var(--c-primary-700);
  border-bottom-color: var(--c-primary-700);
}
.subheader-menu li.active > a,
.subheader-menu li.active > details > summary {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}
@media (max-width: 767.98px) {
  /* phones: scrollable strip; the fixed panel escapes overflow clipping */
  .subheader-menu {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--c-border) transparent;
  }
  .subheader-menu::-webkit-scrollbar { height: 4px; }
  .subheader-menu::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }
}
.subheader-menu li.active > a,
.subheader-menu li.active > details > summary {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}
@media (max-width: 575.98px) {
  .subheader-menu {
    gap: 0 18px;
    font-size: 13.5px;
  }
  .subheader-menu a, .subheader-menu span { padding: 10px 0; }
}

/* dropdown panel (native <details>, works with tap and hover) */
.subnav-drop { position: relative; }
.subnav-drop > summary {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: var(--c-body);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
.subnav-drop > summary::-webkit-details-marker { display: none; }
.subnav-drop > summary::marker { content: ""; }
.subnav-link { color: inherit; }
.subnav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;               /* touch padding handled by summary height */
  margin-left: 2px;
  cursor: pointer;
}
.subnav-drop summary .chev { width: 15px; height: 15px; fill: currentColor; display: block; }
.subnav-drop[open] > summary,
.subnav-drop > summary:hover {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}
.menu-panel {
  display: none;
  position: absolute;
  z-index: 95;
  top: calc(100% + 1px);
  left: -14px;
  width: min(560px, calc(100vw - 30px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px 16px;
}
.subnav-drop[open] > .menu-panel { display: grid; }
/* desktop: hovering the item opens the panel as well */
@media (hover: hover) and (min-width: 1200px) {
  .subnav-drop:hover > .menu-panel { display: grid; }
}
/* phones: full-width sheet under the strip, top set by the inline script */
@media (max-width: 767.98px) {
  .menu-panel {
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    grid-template-columns: 1fr;
  }
}
.menu-panel .menu-group {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.menu-panel .menu-group:first-child { margin-top: 0; }
.menu-panel a { display: block; padding: 6px 8px; color: var(--c-ink); font-size: 14px; border-radius: var(--radius-sm); }
.menu-panel a:hover { color: var(--c-primary-700); background: var(--c-primary-050); }
.menu-panel a.current { color: var(--c-primary); font-weight: 700; background: var(--c-primary-050); }

/* the horizontal menu + full-width content replace the primary sidebar */
.md-sidebar--primary { display: none !important; }

/* give the content column breathing room on large screens */
.md-grid { max-width: 74rem; }
@media (max-width: 575.98px) {
  .md-typeset.md-typeset { font-size: 1rem; }
}

/* == 9. Status board ======================================================= */
.card2 {
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .nodebox, td { width: 44px; height: 44px; font-size: 14px; }
}

/* == 10. Access-policy page ================================================ */
@media (max-width: 767.98px) {
  .company-mission li.a { margin-left: 0; margin-right: 0; }
  .company-mission p[style*="font-size:22px"],
  .company-mission p[style*="font-size:20px"] {
    line-height: 1.6;
  }
}

/* == 11. Accessibility & motion ============================================ */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* == 12. Breakpoint sanity fixes =========================================== */
/* long words must never push the page sideways */
h1, h2, h3, h4 { overflow-wrap: break-word; }

.page-404 h1 {
  font-size: clamp(96px, 28vw, 180px);
}

/* 404 page used 100vh flex; keep */
.page-404 .container { width: 100%; }

/* hero logic: keep CTA readable, stack the two buttons on tiny screens */
@media (max-width: 575.98px) {
  .hero-area .block .btn-main {
    display: inline-block;
    margin: 4px 0;
    min-width: 200px;
  }
}

/* themefisher icon glyph alignment inside service blocks */
.services .service-block .service-icon { line-height: 1; }

/* keep pricing intro legible on dark bg */
.pricing-table .title p { color: #c9d4dd; }
