/* robertsontechnologies.com
 *
 * Design system keyed to the T568B structured-cabling colour standard — blue,
 * orange, green, brown. Those four colours are the site's signature: the sheath
 * rule at the top of every page, and the per-service keying. They are the
 * trade's own vocabulary, not decoration.
 *
 * Fonts are SELF-HOSTED deliberately. This domain bypasses Cloudflare by
 * operator decision, so there is no CDN in front of it; a Google Fonts request
 * would add an external dependency and disclose visitor IPs to a third party.
 */

/* ── fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-cond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-cond-700.woff2') format('woff2');
}

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy:        #0D1F3C;
  --navy-deep:   #081629;
  --navy-line:   #1C3357;
  --paper:       #EEF2F7;
  --white:       #FFFFFF;

  --pair-blue:   #1F6FD0;
  --pair-orange: #E07B1E;
  --pair-green:  #1F8A4C;
  --pair-brown:  #7A4A2B;

  --ink:         #14243C;
  --ink-muted:   #53657E;
  --on-navy:     #E7EDF6;
  --on-navy-dim: #A3B4CC;

  --link:        #15559E;
  --focus:       #E07B1E;

  --measure:     34rem;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
  --stack:       clamp(3.5rem, 7vw, 6rem);

  --sheath: linear-gradient(
    to right,
    var(--pair-blue)   0 25%,
    var(--pair-orange) 25% 50%,
    var(--pair-green)  50% 75%,
    var(--pair-brown)  75% 100%
  );
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.65;
  font-weight: 400;
  /* The sheath rule: the site's signature, and the one place the four cable
     colours appear together. */
  border-top: 5px solid transparent;
  border-image: var(--sheath) 1;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.002em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.875rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 600; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Browsers italicise <address> by default, which made the footer address read
   differently from the identical one on the contact page. */
address { font-style: normal; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

/* ── header ─────────────────────────────────────────────────────────────── */
.masthead {
  background: var(--navy-deep);
  color: var(--on-navy);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
}
.wordmark:hover { color: var(--white); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
  font-size: 1rem;
  font-weight: 500;
}

.nav a {
  color: var(--on-navy-dim);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); }

/* The current page is marked with its own colour from the cable code, so the
   nav reads as part of the same system rather than a generic highlight. */
.nav a[aria-current='page'] {
  color: var(--white);
  border-bottom-color: var(--pair-orange);
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--on-navy);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero h1 { color: var(--white); }

.hero-lead {
  font-size: clamp(1.1875rem, 0.6vw + 1rem, 1.375rem);
  color: var(--on-navy-dim);
  margin-top: 1.5rem;
  max-width: 32rem;
}

.hero-art { justify-self: center; width: 100%; max-width: 19rem; height: auto; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.button {
  display: inline-block;
  background: var(--pair-orange);
  color: #201003;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  margin-top: 2rem;
  border: 2px solid transparent;
}
.button:hover { background: #F28B2C; color: #201003; }

.button-quiet {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--navy-line);
}
.button-quiet:hover { background: var(--navy-line); color: var(--white); }

/* ── sections ───────────────────────────────────────────────────────────── */
.band { padding-block: var(--stack); }
.band-paper { background: var(--paper); }
.band-white { background: var(--white); }

.band h2 + p,
.band h2 + .services { margin-top: 1.5rem; }

.lede {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  color: var(--ink-muted);
}

/* ── services ───────────────────────────────────────────────────────────── */
/* Rule-separated rows rather than a kit of identical shadowed cards. Each row
   is keyed to one cable pair, which is what carries the colour information. */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.service {
  border-top: 1px solid #D3DCE7;
  padding-block: 2.25rem;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1.75rem;
  align-items: start;
}
.service:last-child { border-bottom: 1px solid #D3DCE7; }

.service-mark {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
}

.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--ink-muted); }

/* ── experience callout ─────────────────────────────────────────────────── */
.years {
  background: var(--navy);
  color: var(--on-navy);
}

.years .wrap {
  padding-block: var(--stack);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.years h2 { color: var(--white); }
.years p { color: var(--on-navy-dim); }

/* ── contact ────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.contact-block h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.contact-value {
  font-size: 1.25rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
}

.contact-value a { font-weight: 600; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: var(--on-navy-dim);
  font-size: 1rem;
}

.footer .wrap {
  padding-block: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.footer h2 {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-navy);
  margin-bottom: 0.6rem;
}

.footer a { color: var(--on-navy); }
.footer p { max-width: 24rem; }

.footer-base {
  border-top: 1px solid var(--navy-line);
  font-size: 0.9375rem;
}
.footer-base .wrap {
  display: block;
  padding-block: 1.5rem;
}

/* ── utility ────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 54rem) {
  .hero .wrap,
  .years .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    grid-row: 1;
    max-width: 12rem;
    justify-self: start;
  }
}

@media (max-width: 30rem) {
  .service {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .service-mark { width: 2.75rem; height: 2.75rem; }
}

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

@media print {
  .masthead, .nav, .button { display: none; }
  body { background: #fff; border-top: none; }
  .hero, .years, .footer { background: #fff; color: #000; }
  .hero h1, .years h2 { color: #000; }
  .hero-lead, .years p, .footer { color: #333; }
}

/* ── interior page head ─────────────────────────────────────────────────── */
/* Smaller than the home hero and with no artwork: the home page keeps the one
   bold moment, interior pages stay quiet. */
.page-head {
  background: var(--navy);
  color: var(--on-navy);
}

.page-head .wrap {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.page-head h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.page-head .hero-lead { margin-top: 1.1rem; }

/* ── long-form text ─────────────────────────────────────────────────────── */
.prose p { max-width: var(--measure); }
.prose h2 { max-width: var(--measure); }

/* ── checklist ──────────────────────────────────────────────────────────── */
/* Markers are square and cable-blue rather than a default disc — the same
   system the rest of the page uses. */
.checklist {
  list-style: none;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
  max-width: var(--measure);
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--pair-blue);
}

/* ── error pages ────────────────────────────────────────────────────────── */
.notice {
  min-height: 60vh;
  display: grid;
  align-content: center;
  background: var(--navy);
  color: var(--on-navy);
}

.notice .wrap { padding-block: var(--stack); }
.notice h1 { color: var(--white); }
.notice p { margin-top: 1.25rem; color: var(--on-navy-dim); }
.notice .button { margin-top: 2rem; }
