/* Hackon Services Limited - site styles. No scripts, no external resources. */
:root {
  color-scheme: light;
  --navy: #05077d;
  --navy-deep: #03045c;
  --green: #62ac3c;
  --green-dark: #37751d;
  --ink: #1a2033;
  --muted: #55607a;
  --line: #dde3ee;
  --soft: #f3f6fb;
  --white: #ffffff;
  --wrap: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 2rem; padding-block: 0.75rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 64px; width: auto; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.25rem;
}
.nav li { margin: 0; }
.nav a {
  display: block; padding: 0.55rem 0.85rem;
  font-weight: 600; text-decoration: none; color: var(--navy);
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* Hero (home) */
.hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero > img {
  width: 100%; height: clamp(340px, 42vw, 500px);
  object-fit: cover; object-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 4, 92, 0.94) 0%, rgba(3, 4, 92, 0.78) 42%, rgba(3, 4, 92, 0.2) 100%);
}
.hero-text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center;
}
.hero-text .inner { max-width: 38rem; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero p { font-size: 1.15rem; color: #e6e9ff; margin-bottom: 1.4em; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 0.7rem;
}
.hero .eyebrow { color: #a8e083; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.7rem 1.25rem;
  border-radius: 6px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: #2c5f16; color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Inner page banner */
.banner { background: var(--navy); color: var(--white); border-bottom: 5px solid var(--green); }
.banner .wrap { padding-block: clamp(1.8rem, 4vw, 3rem); }
.banner h1 { color: var(--white); margin: 0; }
.crumbs { font-size: 0.9rem; margin: 0 0 0.6rem; color: #cfd3ff; }
.crumbs a { color: #cfd3ff; }
.crumbs a:hover { color: var(--white); }

/* Sections */
.section { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section.soft { background: var(--soft); }
.section-head { max-width: 46rem; margin-bottom: 1.8rem; }
.lead { font-size: 1.18rem; color: var(--ink); }
.prose { max-width: 46rem; }
.prose strong.co { color: var(--navy); }

.split {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}
.split .figure img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(5, 7, 125, 0.14);
}

.split .figure.crop img { aspect-ratio: 4 / 3; object-fit: cover; }
.split .figure + .related { margin-top: 1.4rem; }

img.focus-upper { object-position: 50% 30%; }

/* Cards */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.cards > li { margin: 0; }
.card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.9em; }
.card .more { margin-top: auto; font-weight: 600; }
.card-plain { border-top: 4px solid var(--green); }
.card h2 { font-size: 1.2rem; margin-bottom: 0.45em; }
.cards-wide { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* Sector tags */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  margin: 0; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 0.95rem; font-weight: 600; color: var(--navy);
}

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps > li {
  counter-increment: step; margin: 0;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1.1rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.steps > li::before {
  content: counter(step);
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 1.15rem;
}
.steps h2 { font-size: 1.25rem; margin-bottom: 0.35em; }
.steps p { margin: 0; color: var(--ink); }

/* Service detail lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--green);
}
.prose h2 { margin-top: 1.6em; }
.prose > h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.equipment {
  border-left: 4px solid var(--green); background: var(--soft);
  padding: 0.7rem 1rem; border-radius: 0 6px 6px 0; font-size: 0.98rem;
}
.section-head.spaced { margin-top: 2.8rem; }

/* Accreditation strip (directly above the call to action band) */
.accred { background: var(--white); border-top: 1px solid var(--line); }
.accred .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.2rem 2.5rem;
  padding-block: 1.6rem;
}
.accred-text { flex: 1 1 22rem; max-width: 40rem; }
.accred h2 { font-size: 1.1rem; margin: 0 0 0.3em; color: var(--navy); }
.accred p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.accred-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
}
.accred-logos li { margin: 0; }
.accred-logos img { display: block; height: 76px; width: auto; }
.accred-logos img.wide { height: 40px; }

/* Accreditation marks used as a page figure */
.split .figure.badges {
  display: flex; justify-content: center; gap: 1.5rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.split .figure.badges img {
  width: auto; height: 170px; max-width: 45%; object-fit: contain;
  border-radius: 0; box-shadow: none;
}

/* Call to action band */
.cta { background: var(--navy); color: var(--white); }
.cta .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.2rem 2rem;
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}
.cta h2 { color: var(--white); margin: 0 0 0.2em; }
.cta p { margin: 0; color: #dfe2ff; }

/* Contact */
.contact-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.contact-grid > li { margin: 0; }
.contact-card {
  height: 100%; background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--green); border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.contact-card h2 { font-size: 1.15rem; }
.contact-card p { margin: 0 0 0.4em; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }

/* Aside list of related pages */
.related { background: var(--soft); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.related h2 { font-size: 1.1rem; }
.related ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.related li { margin: 0; border-bottom: 1px solid var(--line); }
.related li:last-child { border-bottom: 0; }
.related li a { display: block; padding: 0.55rem 0; font-weight: 600; text-decoration: none; }
.related li a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d5d8f5; font-size: 0.96rem; }
.site-footer .wrap {
  display: grid; gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-block: 2.4rem 1.4rem;
}
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 0.7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4em; }
.site-footer a { color: #d5d8f5; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); }
.site-footer .wide { grid-column: span 2; }
.site-footer .two-col { columns: 2; column-gap: 2rem; }
.site-footer .two-col li { break-inside: avoid; }
.site-footer .legal {
  display: block; border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 1rem 1.6rem; color: #b3b8e6; font-size: 0.9rem;
}
.site-footer .legal p { margin: 0; }

@media (max-width: 760px) {
  .site-footer .wide { grid-column: auto; }
  .site-footer .two-col { columns: 1; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .figure { max-width: 26rem; }
  .brand img { height: 52px; }
  .nav a { padding: 0.45rem 0.6rem; }
  .hero::after { background: rgba(3, 4, 92, 0.82); }
  .hero > img { height: 440px; }
  .steps > li { grid-template-columns: 2.4rem minmax(0, 1fr); padding: 1rem; }
  .steps > li::before { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header .nav, .cta, .hero::after, .btn-row { display: none; }
  .hero, .banner, .site-footer { background: none; color: #000; }
  .hero h1, .banner h1 { color: #000; }
}

/* Holding page (October 2026) */
.banner.holding .wrap { padding-block: clamp(2.4rem, 6vw, 4.5rem); }
.banner.holding h1 { max-width: 40rem; }
.banner .eyebrow { color: #a8e083; }
.banner .lead { color: #e6e9ff; max-width: 44rem; margin: 1rem 0 0; font-size: 1.15rem; }
.brand.logo-motto img { height: 124px; width: auto; }
/* Motto as text, styled like the logo */
.hero .motto, .motto {
  margin: 0; color: var(--white);
  font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.motto strong { font-weight: 800; border-bottom: 3px solid var(--green); padding-bottom: 2px; }
/* "New website coming soon" badge above the hero eyebrow */
.hero .soon {
  display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem;
  background: var(--green-dark); color: var(--white); border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero .soon + .eyebrow { display: block; }
/* Hero: photo fills the band behind the text; the band grows with its text on small screens */
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text {
  position: relative; inset: auto; z-index: 1;
  min-height: clamp(340px, 42vw, 500px); padding-block: 2.5rem;
}
@media (max-width: 699px) {
  .brand.logo-motto img { height: 64px; }
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.holding-footer .legal { padding-block: 1.6rem 1.8rem; border-top: 0; }
.holding-footer .legal p + p { margin-top: 0.45em; }
