/* VOICE   work: one experienced technician, calm and capable, no hype
   IDEA    the client's own IT drawn as a small network, with Tanner at the hub
   PICTURE a wide network map in the hero: the T hub linked to six services,
           pulses travelling the links (site.js); each node jumps to its service
   COLOUR  white ground, navy ink; the logo's royal blue as one big flat field;
           cyan only for live things (pulses, highlights, focus)
   TYPE    Manrope, self-hosted (assets/fonts), with the system UI face as fallback;
           heavy weights for headings, regular for text
   LAYOUT  laptop: title across the top of the blue field, the map full-width under it;
           phone: title, then the map turned on its side (hub left, services stacked right) */

/* Manrope variable font (weights 200–800), self-hosted. Licence: assets/fonts/README.txt */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0b4fc4;       /* logo royal blue, darkened a touch for white text (6.5:1) */
  --blue-ink: #0b5bd3;    /* links on white */
  --navy: #0a1464;        /* darkest logo blue: headings and footer */
  --cyan: #1cc4e8;        /* lightest logo blue: pulses and highlights only */
  --ink: #141a2e;
  --muted: #4d5670;
  --line: #dfe4ee;
  --bg: #fff;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.02em; color: var(--navy); }
.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }

.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border-radius: 8px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button:disabled { opacity: .6; cursor: wait; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--blue); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { width: 52px; }
.site-header nav { display: flex; align-items: center; gap: 1.6rem; }
.site-header nav a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }

/* ---- hero: one flat blue field holding the title and the map ---- */
.hero { background: var(--blue); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; max-width: 12ch; }
.hero-text p { margin: 0 0 1.25rem; font-size: 1.15rem; color: #e4ecff; max-width: 34rem; }
.actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: .75rem; }
.button-light { background: #fff; border-color: #fff; color: var(--navy); }
.button-light:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-outline { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.button-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* The network map. Nodes sit at --x/--y; links and pulses are drawn into .net-links. */
.net { position: relative; height: clamp(330px, 34vw, 410px); margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.net-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-links .link { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 2; }
.net-links .link.lit { stroke: rgba(255, 255, 255, .8); }
.net-links .pulse { fill: var(--cyan); }
.net-links .halo { fill: var(--cyan); opacity: .25; }
.hub { position: absolute; left: 50%; top: 51%; width: 150px; height: 150px; transform: translate(-50%, -50%); display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 0 0 12px rgba(255, 255, 255, .12), 0 0 0 26px rgba(255, 255, 255, .06); }
.hub img { width: 96px; margin-left: -4px; }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; gap: .55rem; padding: .7rem 1.05rem .7rem .8rem; background: #fff; color: var(--navy); border-radius: 999px; font-weight: 700; font-size: .98rem; line-height: 1.15; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s; }
.node svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.node:hover, .node.lit { background: var(--cyan); color: var(--navy); }
.node:hover svg, .node.lit svg { stroke: var(--navy); }
.node:hover { transform: translate(-50%, -50%) scale(1.04); }

/* ---- services ---- */
.services { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.services-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; padding-bottom: 1.75rem; border-bottom: 2px solid var(--navy); }
.services-head h2, .contact h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
.services-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.group { padding-top: 2rem; }
.group h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue-ink); margin-bottom: .4rem; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.group li:last-child { border-bottom: 0; }
.group li > svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.group h4 { font-size: 1.15rem; font-weight: 700; margin: .2rem 0 .35rem; }
.group p { margin: 0; color: var(--muted); font-size: 1rem; }
.group li:target { background: linear-gradient(90deg, rgba(28, 196, 232, .16), transparent 80%); border-radius: 8px; animation: flash 2.5s ease-out 1 forwards; }
@keyframes flash { to { background-color: transparent; background-image: none; } }

/* ---- contact ---- */
.contact { background: #eef3fd; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem 4rem; align-items: start; }
.contact-details > p { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 1.75rem; }
.contact-details dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .75rem 1.25rem; }
.contact-details dt { font-weight: 800; color: var(--navy); }
.contact-details dd { margin: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 3.5vw, 2rem); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); padding: .7rem .85rem; border: 1px solid #b9c3d6; border-radius: 8px; background: #fff; }
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 196, 232, .35); }
.field .error { display: block; color: #b3261e; font-size: .9rem; margin-top: .3rem; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-status { margin: .9rem 0 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #12703a; }
.form-status.fail { color: #b3261e; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #c9d3ef; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; padding: 3rem 0 2rem; }
.footer-grid p { margin: 0; }
.footer-name { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .8rem !important; }
.footer-name img { width: 44px; }
.footer-base { padding: 1.25rem 0 1.75rem; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ---- narrower screens ---- */
@media (max-width: 980px) {
  .node { font-size: .9rem; padding: .6rem .9rem .6rem .7rem; }
  .hub { width: 124px; height: 124px; }
  .hub img { width: 76px; }
}
@media (max-width: 820px) {
  .hero-text, .services-head, .contact-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .actions { grid-column: auto; }
  .groups { gap: 0 2.5rem; }
  /* The map turns on its side: hub on the left, services stacked on the right */
  .net { height: 430px; margin-top: 2rem; }
  .node { left: 36%; top: var(--py); transform: translateY(-50%); font-size: .9rem; max-width: 64%; }
  .node:hover { transform: translateY(-50%) scale(1.03); }
  .hub { left: 15%; top: 50%; width: 96px; height: 96px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .12); }
  .hub img { width: 60px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header nav a[href="#services"] { display: none; }
  .brand span { font-size: 1rem; }
  .groups, .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .group li:target { animation: none; }
}
