/* OpenIDC site styles.
   One small hand-written file (no Bootstrap). Brand colours and fonts are
   declared once as custom properties; layout uses CSS grid/flexbox. */

:root {
  --yellow: #fed711;
  --teal: #01303f;
  --teal-700: #02212c;
  --ink: #1c1f1e;
  --muted: #4b5563;
  --line: #e7e9ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --page: #f1f3f5;
  --page-alt: #e4ecf0;   /* teal-tinted band for alternating sections */

  --font-body: "Exo 2", Helvetica, Arial, sans-serif;
  --font-head: "Montserrat", Helvetica, Arial, sans-serif;
  --font-logo: "Montserrat", Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img {
  height: 56px; width: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}

@media (min-width: 768px) {
  :root { --header-h: 116px; }
  .brand img { height: 96px; }
}

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }
.nav-backdrop { display: none; }

.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative;
  text-decoration: none; color: #cfd8dc; font-family: var(--font-logo);
  font-weight: 700; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase;
  transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--yellow); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--yellow); }
.site-nav a:focus-visible::after, .site-nav a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
  background-color: var(--teal);
  background-image:
    radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    radial-gradient(ellipse 115% 85% at 80% -12%, rgba(6,96,126,.95), transparent 62%),
    linear-gradient(155deg, #04384c, #01303f 52%, #02161d);
  background-size: 26px 26px, 100% 100%, 100% 100%;
}
.hero h1 {
  font-family: var(--font-logo); font-weight: 700; margin: 0;
  font-size: clamp(2.6rem, 9vw, 5rem); letter-spacing: clamp(4px, 1.5vw, 12px);
  line-height: 1.05; text-transform: uppercase;
}
.hero h1 span { color: var(--yellow); }
.hero .lead {
  font-family: var(--font-logo); font-weight: 400; color: var(--yellow); letter-spacing: 0.2em;
  font-size: clamp(1.15rem, 3.5vw, 1.9rem); margin: 1.7rem 0 .9rem;
}

/* ---------- Hero intro paragraph ---------- */
.intro-lead {
  font-family: var(--font-body); font-weight: 400; text-align: center;
  max-width: 46rem; margin: 2.4rem auto 0;
  font-size: 1rem; line-height: 1.7; color: #c9d4da;
}
.intro-lead a { color: var(--yellow); text-decoration: none; }
.intro-lead a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-logo); font-weight: 700; font-size: .83rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .72rem 1.45rem; border-radius: 9px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--teal); box-shadow: 0 8px 22px rgba(254, 215, 17, .28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(254, 215, 17, .42); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* Hero CTA row + certification badge */
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2.2rem 0 0; }
.hero-tag {
  display: inline-block; margin: 1.8rem 0 0;
  font-family: var(--font-logo); font-weight: 700; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: #c9d4da;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .4rem 1.05rem;
}

/* ---------- Stats / credibility strip ---------- */
.stats { background: var(--teal-700); color: #fff; padding: clamp(2rem, 4vw, 3rem) 0; }
.stats-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.4rem, 3vw, 1.75rem) 1rem;
}
.stats-grid li { display: flex; flex-direction: column; gap: .35rem; text-align: center; }
.stat-value {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1;
}
.stat-label {
  font-family: var(--font-logo); font-weight: 400; text-transform: uppercase;
  letter-spacing: .1em; font-size: .72rem; color: var(--yellow);
}

/* Tighten the hero on phones so its content fits one screen */
@media (max-width: 767px) {
  .hero { padding-top: 1.25rem; padding-bottom: 1.75rem; }
  .hero .lead { margin: 1rem 0 .7rem; }
  .hero-cta { margin-top: 1.4rem; }
  .intro-lead { margin-top: 1.6rem; }
  .hero-tag { margin-top: 1.3rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
/* Alternate band tint so sections don't blur into one long white expanse:
   hero(dark) -> services(page) -> software(alt) -> customers(page) -> team(alt) -> contact(dark) */
#software, #team { background: var(--page-alt); }
/* Yellow accent straddling the hero -> Services seam */
#services { position: relative; }
#services::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 4px; border-radius: 2px; background: var(--yellow);
}
.kicker {
  font-family: var(--font-logo); font-weight: 700; text-align: center;
  text-transform: uppercase; letter-spacing: .2em; font-size: .75rem;
  color: var(--muted); margin: 0 0 .6rem;
}
.section-title {
  font-family: var(--font-head); font-weight: 700; text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .6rem;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: var(--yellow); margin: .9rem auto 0;
}
.section-intro { text-align: center; color: var(--muted); max-width: 46rem; margin: 0 auto 2.5rem; }

/* ---------- Customers logo band ---------- */
/* The set is duplicated for a seamless loop. site.js auto-scrolls it (skipped
   for prefers-reduced-motion) and the inner is a native horizontal scroll
   container, so it can also be swiped/dragged; auto-scroll resumes when idle. */
.logo-marquee {
  margin: 1.6rem 0 0; overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logo-marquee-inner {
  overflow-x: auto; overflow-y: hidden; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
  user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee-inner::-webkit-scrollbar { display: none; }
.logo-marquee-inner.is-dragging { cursor: grabbing; }
.logo-track {
  display: flex; align-items: center; width: max-content;
  list-style: none; margin: 0; padding: .9rem 0;
}
.logo-track li {
  position: relative; flex: 0 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 2.6rem);
}
/* subtle short vertical divider between logos (sits centred in the gap) */
.logo-track li::after {
  content: ""; position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  width: 1px; height: 34px; background: #cdd3d8;
}
.logo-track img {
  height: 54px; width: auto; display: block;
  filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s;
  -webkit-user-drag: none; user-drag: none;
}
.logo-track img:hover { filter: none; opacity: 1; }
.customer-name { font-family: var(--font-head); font-size: 1.02rem; margin: 0 0 .5rem; }
.customer-blurb { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Software grid ---------- */
.feature-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.feature-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem;
  box-shadow: 0 4px 16px rgba(1,48,63,.08);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1,48,63,.13); border-color: transparent; }
.feature-head {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  align-self: flex-start; text-decoration: none; color: inherit;
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(1, 48, 63, .07); margin-bottom: .9rem;
  transition: background .2s;
}
.feature-icon .ico { width: 22px; height: 22px; fill: var(--teal); transition: fill .2s; }
.feature-card:hover .feature-icon { background: var(--teal); }
.feature-card:hover .feature-icon .ico { fill: #fff; }
.feature-name {
  margin: 0;
  font-family: var(--font-logo); font-weight: 700; color: var(--teal); font-size: 1.1rem;
}
.feature-card:hover .feature-name { text-decoration: underline; }
.feature-card p { color: var(--muted); margin: .6rem 0 0; }
.feature-tags li.tag-cert {
  color: var(--teal); background: rgba(254, 215, 17, .16);
  border-color: rgba(254, 215, 17, .55);
}
.feature-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  margin: auto 0 0; padding: 1.1rem 0 0;
}
.feature-tags li {
  font-family: var(--font-logo); font-weight: 600; font-size: .68rem; letter-spacing: .02em;
  color: var(--teal); background: rgba(1, 48, 63, .06);
  border: 1px solid rgba(1, 48, 63, .09); border-radius: 999px; padding: .28rem .62rem;
}

/* ---------- Services ---------- */
.services-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  border-radius: 10px; padding: 1.8rem 1.9rem; box-shadow: 0 4px 16px rgba(1,48,63,.08);
  transition: transform .18s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1,48,63,.13); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(1, 48, 63, .07); color: var(--teal); margin-bottom: 1rem;
}
.service-icon .ico-line { width: 26px; height: 26px; display: block; margin: 0; }
.service-card h3 { font-family: var(--font-head); margin: 0 0 .6rem; font-size: 1.2rem; }
.service-card p { color: #4b5563; margin: 0; }

/* ---------- Team ---------- */
.team-grid {
  list-style: none; margin: 2.5rem auto 0; padding: 0;
  display: grid; justify-content: center;
  grid-template-columns: repeat(3, minmax(0, 200px));
  gap: 2.75rem 2.5rem;
}
.team-card { text-align: center; display: flex; flex-direction: column; }
/* Honeycomb: offset the two rows of three in opposite directions so the round
   photos interlock (sit in each other's gaps) instead of forming one flat grid. */
@media (min-width: 760px) {
  .team-card:nth-child(-n+3) { transform: translateX(-3.75rem); }
  .team-card:nth-child(n+4)  { transform: translate(3.75rem, -1.25rem); }
}
@media (max-width: 759px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 200px)); }
}
@media (max-width: 479px) {
  .team-grid { grid-template-columns: minmax(0, 220px); }
}
.team-photo {
  display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.1rem;
  border: 5px solid #fff; box-shadow: 0 8px 22px rgba(1,48,63,.15);
  filter: grayscale(1);
  transition: transform .18s, box-shadow .2s, border-color .2s, filter .25s;
}
/* hover: lift, yellow ring, stronger shadow, and reveal full colour */
.team-photo:hover {
  transform: translateY(-4px);
  border-color: var(--yellow); box-shadow: 0 14px 30px rgba(1,48,63,.22);
  filter: grayscale(0);
}
.team-name { font-family: var(--font-head); margin: 0; font-size: 1.12rem; }
.team-role { color: var(--muted); margin: .25rem 0 .9rem; }
.team-social { display: flex; gap: .55rem; justify-content: center; margin-top: auto; }
.team-social a {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; transition: background .2s, transform .15s;
}
.team-social a:hover { background: var(--yellow); color: var(--teal); transform: translateY(-2px); }
.ico { width: 16px; height: 16px; fill: currentColor; display: block; }

/* ---------- Contact ---------- */
/* Contact + footer share one full screen: the wrapper is one viewport tall,
   Contact grows to fill it, the footer keeps its natural height at the bottom.
   (svh sizes to the always-visible area so the mobile URL bar can't cause a jump.) */
.end-screen {
  min-height: 100vh;    /* fallback */
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.contact {
  flex: 1;              /* fill the wrapper minus the footer */
  display: flex; flex-direction: column; justify-content: center;
  color: #e7edf0; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.6);
  background: var(--teal) url("/img/map-image.png") center / cover no-repeat;
}
.contact .section-title { color: #fff; }
.contact .kicker { color: #9fb0b8; }
.contact-details { font-size: 1.05rem; line-height: 2; margin: 2.5rem 0 1.75rem; }
.contact-details a { color: var(--yellow); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-meta { color: #9fb0b8; font-size: .92rem; line-height: 1.9; margin-top: 1.75rem; }
.contact-meta::before { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--yellow); margin: 0 auto 1.25rem; }
.contact-meta a { color: #cfd8dc; }
.contact-meta .meta-item { white-space: nowrap; }
.contact-meta .meta-sep { margin: 0 .65rem; color: #5b7480; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-700); color: #c4ced3; text-align: center; padding: 2.5rem 1.25rem; font-size: .9rem; }
.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.75rem; text-align: left;
}
.footer-end { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.footer-nav a { color: #c4ced3; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: .55rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  color: #c4ced3; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; transition: all .2s;
}
.footer-social a:hover { background: var(--yellow); color: var(--teal); border-color: var(--yellow); }
.footer-social .ico { width: 16px; height: 16px; }
.footer-copy { color: #9fb0b8; font-size: .92rem; }
.footer-copy a { color: inherit; text-decoration: none; }
.footer-copy a:hover { color: var(--yellow); }

/* ---------- Responsive nav (CSS-only, no JS) ---------- */
@media (max-width: 767px) {
  .nav-toggle-label {
    display: inline-flex; align-items: center; justify-content: center;
    /* Drawn slightly smaller than the 56px logo: a solid tile with bright bars
       optically reads larger than the logo's busy, subdivided badge, so a hair
       smaller makes them look the same size. */
    width: 52px; height: 52px; border-radius: 11px; cursor: pointer;
    /* Match the logo badge exactly: same slate tile (#2c3c47, a touch lighter
       than the header), same light edge + drop shadow. The dark tile is what
       actually reads as "elevated"; the bars go yellow to keep the accent. */
    background: #2c3c47;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; display: block; width: 24px; height: 2px; background: var(--yellow); position: relative;
  }
  .nav-toggle-label span::before { position: absolute; top: -7px; }
  .nav-toggle-label span::after { position: absolute; top: 7px; }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--teal); display: none;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .site-nav a { display: block; padding: .9rem 1.25rem; }

  /* Tap anywhere on the page (outside the open menu) to close it */
  .nav-toggle:checked ~ .nav-backdrop {
    display: block; position: fixed; inset: var(--header-h) 0 0 0;
    background: transparent;
  }
}

/* ---------- Download pages ---------- */
/* Standalone build-listing pages (downloads/<key>/index.html), generated from
   _data/downloads.yml by gen-downloads.rb. They reuse the site chrome
   (.site-header / .section / .site-footer) plus the rules below. */
.dl-page { background: var(--page); }  /* slightly gray, matching the Services section */
.dl-home {
  color: #cfd8dc; text-decoration: none; font-family: var(--font-logo);
  font-weight: 700; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase;
}
.dl-home:hover { color: var(--yellow); }
.dl-group { margin-top: 2.5rem; }
.dl-group h2 {
  font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 .3rem;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.dl-group h2 a { color: var(--teal); text-decoration: none; }
.dl-group h2 a:hover { color: var(--muted); }
.dl-note { color: var(--muted); font-style: italic; margin: .25rem 0 .9rem; }
table.dl { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.dl td { padding: .2rem .8rem; border-bottom: 1px solid var(--line); }
table.dl tr:nth-child(even) td { background: var(--bg-soft); }
table.dl tr:hover td { background: rgba(1, 48, 63, .08); }
table.dl td.dl-date { color: var(--muted); white-space: nowrap; text-align: right; }
table.dl a { color: #345b6b; text-decoration: none; word-break: break-all; }
table.dl a:hover { color: var(--teal); text-decoration: underline; }
table.dl .dl-empty { color: var(--muted); font-style: italic; }
/* Landing page (/downloads/) intro prose */
.dl-intro { max-width: 42rem; margin: 0 auto; text-align: center; line-height: 1.7; }
.dl-intro p { margin: 0 0 1rem; }
.dl-intro a { color: #345b6b; text-decoration: underline; }
.dl-intro a:hover { color: var(--teal); }

/* Section jump-menu (hamburger) on multi-section download pages. Shown at ALL
   widths (section names are long, so inline-on-desktop won't fit); reuses the
   site's .nav-toggle / .site-nav machinery as a right-aligned dropdown. */
.dl-page .nav-toggle-label {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 11px; cursor: pointer;
  background: #2c3c47; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.dl-page .nav-toggle-label span,
.dl-page .nav-toggle-label span::before,
.dl-page .nav-toggle-label span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--yellow); position: relative;
}
.dl-page .nav-toggle-label span::before { position: absolute; top: -7px; }
.dl-page .nav-toggle-label span::after  { position: absolute; top: 7px; }
.dl-page .site-nav {
  position: absolute; top: var(--header-h); right: 0; left: auto;
  min-width: 16rem; max-width: 90vw;
  background: var(--teal); display: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  border-bottom-left-radius: 12px; overflow: hidden;
}
.dl-page .nav-toggle:checked ~ .site-nav { display: block; }
.dl-page .site-nav ul { flex-direction: column; gap: 0; padding: .4rem 0; }
.dl-page .site-nav a { display: block; padding: .8rem 1.4rem; white-space: nowrap; }
.dl-page .nav-toggle:checked ~ .nav-backdrop {
  display: block; position: fixed; inset: var(--header-h) 0 0 0; background: transparent;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* The hidden initial state only applies once JS adds `reveal-on`, so content
   stays visible without JS; JS also skips this entirely for reduced-motion. */
[data-reveal] { transition: opacity .55s ease, transform .55s ease; }
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }
/* gentle stagger for cards within a grid */
.reveal-on [data-reveal]:nth-child(2) { transition-delay: .07s; }
.reveal-on [data-reveal]:nth-child(3) { transition-delay: .14s; }
.reveal-on [data-reveal]:nth-child(4) { transition-delay: .21s; }
