/* Rad-Tech Computers - the only stylesheet. No framework, no build step, no JS. */

:root {
  /* ink */
  --ink:        #0e1a26;
  --ink-soft:   #334655;
  --muted:      #64788a;

  /* brand */
  --brand:      #0d5796;
  --brand-700:  #09406f;
  --brand-900:  #0a2440;
  --brand-050:  #eaf2fa;
  --accent:     #0bb3c4;
  --accent-700: #068c9a;
  --warn:       #c2410c;
  --warn-bg:    #fff6ed;

  /* surfaces */
  --page:    #f5f8fb;
  --surface: #ffffff;
  --line:    #dfe8f0;
  --line-2:  #eef3f8;

  --shadow-sm: 0 1px 2px rgb(14 26 38 / 6%), 0 2px 6px rgb(14 26 38 / 5%);
  --shadow-md: 0 2px 4px rgb(14 26 38 / 5%), 0 10px 26px rgb(14 26 38 / 9%);
  --shadow-lg: 0 18px 50px rgb(10 36 64 / 28%);

  --r:    14px;
  --r-sm: 9px;
  --wrap: 1140px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:target { scroll-margin-top: 92px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0 0 .45em;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.1vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: .9em;
}

/* icons -------------------------------------------------------------- */

.icon { width: 24px; height: 24px; flex: none; }
.icon-lg { width: 30px; height: 30px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 30px;
  padding-top: 13px; padding-bottom: 13px;
}

.brand { display: block; text-decoration: none; line-height: 0; }
.brand img { display: block; height: 44px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 4px; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 100px;
  color: var(--ink-soft); text-decoration: none;
  font-weight: 600; font-size: .96rem;
}
.site-nav a:hover { background: var(--brand-050); color: var(--brand); }
.site-nav a[aria-current="page"] { background: var(--brand); color: #fff; }

.header-phone {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 100px;
  background: var(--brand-050); color: var(--brand);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { background: var(--brand); color: #fff; }
.header-phone .icon { width: 17px; height: 17px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 88% 12%, rgb(11 179 196 / 26%), transparent 65%),
    linear-gradient(135deg, var(--brand-900) 8%, var(--brand) 115%);
  color: #fff;
}
.hero-inner {
  display: grid; align-items: center;
  grid-template-columns: 1.03fr .97fr; gap: 52px;
  padding-top: 68px; padding-bottom: 76px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: #7fe3ee; }
.hero p {
  color: rgb(234 242 250 / 90%);
  font-size: 1.11rem; max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

.hero-media {
  position: relative; isolation: isolate;
  aspect-ratio: 16 / 11;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgb(255 255 255 / 16%);
  /* First frame as a background so the 0-1s fade-in never shows an empty box */
  background: #0b2435 url(/img/hero-1.jpg) center / cover no-repeat;
}
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: hero-fade 21s infinite;
}
.hero-media img:nth-child(1) { animation-delay:  0s; }
.hero-media img:nth-child(2) { animation-delay:  7s; }
.hero-media img:nth-child(3) { animation-delay: 14s; }

/* Each frame holds until the next one starts fading in, so the images
   cross-fade instead of both being transparent for a second. */
@keyframes hero-fade {
   0%     { opacity: 0; }
   4.76%  { opacity: 1; }   /*  1s - faded in   */
  33.33%  { opacity: 1; }   /*  7s - hold ends  */
  38.1%   { opacity: 0; }   /*  8s - faded out  */
  100%    { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; opacity: 0; }
  .hero-media img:nth-child(1) { opacity: 1; }
}

/* ---------- Stat bar ---------- */

.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  margin: 0;
}
.stats div {
  display: flex; align-items: center; gap: 15px;
  background: var(--surface); padding: 22px 24px;
}
.stats .icon { color: var(--accent-700); }
.stats b { display: block; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.25; }
.stats span { font-size: .91rem; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px;
  background: var(--brand); color: #fff;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.btn:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #04333a; }
.btn-accent:hover { background: #09c6d9; color: #04333a; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgb(255 255 255 / 42%);
}
.btn-ghost:hover { background: rgb(255 255 255 / 12%); color: #fff; }

/* ---------- Page scaffolding ---------- */

main { padding: 54px 0 72px; }
.page-head { margin-bottom: 34px; }
.page-title { margin-bottom: .3em; }
.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 68ch; }
.tagline {
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  font-weight: 700; color: var(--brand); letter-spacing: -.015em;
}

section { margin: 0 0 56px; }
section:last-child { margin-bottom: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
}
.panel-cta {
  background: linear-gradient(135deg, var(--brand-900), var(--brand));
  border: 0; color: #fff;
}
.panel-cta h2 { color: #fff; }
.panel-cta p { color: rgb(234 242 250 / 88%); }

/* ---------- Cards ---------- */

.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.cards a {
  display: flex; align-items: center; gap: 14px;
  height: 100%; padding: 19px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  font-weight: 650; text-decoration: none; color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.cards a:hover {
  transform: translateY(-2px);
  border-color: #b9d3ea; box-shadow: var(--shadow-md); color: var(--brand);
}
.cards .icon {
  color: var(--brand);
  background: var(--brand-050); border-radius: 10px;
  width: 42px; height: 42px; padding: 9px;
}
.cards a:hover .icon { background: var(--brand); color: #fff; }

/* ---------- Service sections ---------- */

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
  margin-bottom: 20px;
}
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service-head h2 { margin: 0; }
.service-head .icon {
  color: #fff; background: var(--brand);
  width: 46px; height: 46px; padding: 10px; border-radius: 12px;
}
.service ul { padding-left: 1.25em; margin: 0 0 1.1em; }
.service li { margin-bottom: .55em; }
.service li::marker { color: var(--accent-700); }

/* Sub-list inside a service section: kit types and what each is for. */
.spec { list-style: none; margin: 4px 0 20px; padding: 0; }
.spec li {
  padding: 13px 0; border-top: 1px solid var(--line-2);
  display: grid; gap: 2px 18px;
  grid-template-columns: minmax(150px, 230px) 1fr;
}
.spec li:first-child { border-top: 0; }
.spec b { color: var(--ink); }
.spec span { color: var(--ink-soft); }

@media (max-width: 620px) {
  .spec li { grid-template-columns: 1fr; }
}

.shots { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
.shots img {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  width: auto; max-height: 230px; box-shadow: var(--shadow-sm);
}
/* A single photo worth showing properly rather than as a thumbnail. */
.shots-lg img { max-height: 440px; }
@media (max-width: 760px) { .shots-lg img { max-height: 320px; } }

/* ---------- Recent jobs ---------- */

.job {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 18px;
}
.job h2 { margin-bottom: .2em; }
.job time {
  display: inline-block; margin-bottom: .9em;
  font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-700);
}

/* ---------- Support page ---------- */

.notice {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid #f6d4b8; border-left: 4px solid var(--warn);
  background: var(--warn-bg);
  padding: 17px 20px; border-radius: var(--r-sm);
  margin-bottom: 30px;
}
.notice .icon { color: var(--warn); margin-top: 2px; }
.notice p { margin: 0; color: #8a3a10; font-weight: 600; }

.downloads {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  margin: 0 0 40px; padding: 0; list-style: none;
}
.dl {
  display: flex; flex-direction: column; gap: 5px;
  min-height: 170px; padding: 26px 26px 22px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
.dl:hover, .dl:focus-visible {
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 16px 36px rgb(13 87 150 / 34%);
}

/* One colour per agent so people can tell them apart at a glance. Shades are
   darkened from the brand colours until white text clears 4.5:1. */
.dl-pc { background: linear-gradient(145deg, #d23c34 0%, #9b2c26 100%); }
.dl-pc:hover, .dl-pc:focus-visible { box-shadow: 0 16px 36px rgb(210 60 52 / 36%); }

.dl-mac { background: linear-gradient(145deg, #a83a9e 0%, #7c2b75 100%); }
.dl-mac:hover, .dl-mac:focus-visible { box-shadow: 0 16px 36px rgb(168 58 158 / 36%); }
.dl .icon {
  width: 34px; height: 34px; margin-bottom: 8px;
  color: #fff; opacity: .92;
}
.dl b { font-size: 1.42rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.dl span { font-size: .95rem; }
.dl em {
  margin-top: auto; padding-top: 12px;
  font-size: .78rem; font-style: normal; opacity: .85;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* ---------- Partners ---------- */

.logos {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.logos li {
  display: flex; align-items: center; justify-content: center;
  min-height: 86px; padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease;
}
.logos li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.logos img {
  filter: grayscale(1); opacity: .72;
  transition: filter .18s ease, opacity .18s ease;
}
.logos li:hover img { filter: none; opacity: 1; }

.badges { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid; gap: 28px;
  grid-template-columns: minmax(265px, .85fr) minmax(300px, 1.15fr);
  align-items: start;
}
.contact-grid iframe {
  width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--brand); margin-top: 3px; }
.contact-list b { display: block; font-size: .78rem; letter-spacing: .1em;
                  text-transform: uppercase; color: var(--muted); font-weight: 700; }

address { font-style: normal; line-height: 1.7; }

.map-full {
  width: 100%; aspect-ratio: 21 / 9; min-height: 280px;
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); display: block;
}

/* ---------- Contact form ---------- */

.form { display: grid; gap: 17px; }
.form-row { display: grid; gap: 17px; grid-template-columns: 1fr 1fr; }
.form label {
  display: block; margin-bottom: 6px;
  font-size: .9rem; font-weight: 650; color: var(--ink);
}
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: #b9d3ea; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.form textarea { min-height: 148px; resize: vertical; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.form-note { margin: 0; font-size: .86rem; color: var(--muted); }

/* Honeypot: invisible to people, irresistible to bots. Not display:none,
   which some bots skip. */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .form button { justify-self: stretch; text-align: center; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-900); color: rgb(222 234 245 / 80%);
  padding: 44px 0 34px; font-size: .95rem;
}
.site-footer .wrap {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; font-size: 1rem; }
.site-footer a { color: #8fe0ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-top: 18px; font-size: .86rem; color: rgb(222 234 245 / 58%);
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 58px; }
  .hero h1 { max-width: 20ch; }
  .hero-media { aspect-ratio: 16 / 9; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  main { padding: 38px 0 56px; }
  section { margin-bottom: 42px; }

  .site-header .wrap { gap: 10px 16px; padding-top: 11px; padding-bottom: 11px; }
  .brand img { height: 32px; }
  .header-phone { margin-left: auto; padding: 7px 13px; font-size: .92rem; }
  .site-nav { width: 100%; margin-left: 0; }
  .site-nav ul { gap: 3px; }
  .site-nav a { padding: 7px 12px; font-size: .9rem; }

  .panel, .service, .job { padding: 22px 20px; }
  .service-head .icon { width: 40px; height: 40px; padding: 8px; }
  .shots img { max-height: 170px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .stats div { padding: 17px 18px; }
}
