/* ===============================================================
   SRQ Computer Services
   Theme: white rack hardware - light chassis, thin grey strokes,
   soft shadows, one status LED per unit. Services and products are
   presented as 1U faceplates in a rack.
   Accent colors are taken from the logo: deep blue, sky, orange.
   Single stylesheet, no build step, no dependencies.
   =============================================================== */

/* --- Tokens ---------------------------------------------------- */

:root {
  /* Surfaces */
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --rail: #eceff3;
  --hole: #d4dae1;

  /* Strokes */
  --line: #e3e7ec;
  --line-strong: #d2d8e0;

  /* Ink */
  --ink: #14181f;
  --ink-soft: #5b6673;
  --ink-faint: #8b95a3;

  /* Brand, sampled from the logo */
  --brand: #0018a8;
  --brand-hover: #001480;
  --sky: #06a8f7;
  --orange: #f07818;
  --accent: var(--brand);

  /* Patch cable colors, one per unit */
  --cable-blue: #2563eb;
  --cable-red: #dc2626;
  --cable-yellow: #d69e00;
  --cable-green: #16a34a;
  --cable-purple: #7c3aed;
  --cable-orange: #ea580c;
  --cable-cyan: #0891b2;
  --cable-grey: #94a3b8;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, 0.04), 0 6px 16px rgba(16, 24, 40, 0.08);

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: clamp(2rem, 5vw, 3.1rem);

  /* Layout */
  --page: 68rem;
  --measure: 38rem;
  --space: 1.5rem;
  --radius: 8px;
}

/* --- Base ------------------------------------------------------ */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; }

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6em 1em;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

/* --- Header ---------------------------------------------------- */
/* Full-bleed white bar. The logo artwork has a white background of
   its own, so a white bar hides its edges completely. */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 0.85rem;
  padding-inline: max(var(--space), calc((100% - var(--page)) / 2));
}

.brand { margin-right: auto; display: flex; }

.site-logo {
  height: 46px;
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

/* --- Remote support button ------------------------------------- */

.remote-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
}

.remote-button:hover {
  color: #fff;
  background: var(--brand-hover);
  box-shadow: var(--shadow-md);
}

.remote-button:active { transform: translateY(1px); }

.remote-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(6, 168, 247, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
  flex: none;
}

.remote-label { display: flex; flex-direction: column; line-height: 1.25; }
.remote-label strong { font-size: 0.95rem; font-weight: 650; }
.remote-label small { color: rgba(255, 255, 255, 0.75); font-size: 0.72rem; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Layout ---------------------------------------------------- */

main {
  max-width: var(--page);
  margin-inline: auto;
  padding: calc(var(--space) * 2) var(--space);
}

main > section + section { margin-top: calc(var(--space) * 2.5); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space);
}

.section-head h2 { margin: 0; }

.section-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
}

.section-link::after { content: " \2192"; }
.section-link:hover { text-decoration: underline; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.hero h1 { margin-bottom: 0.4em; }

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

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

.button {
  display: inline-block;
  padding: 0.65em 1.35em;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.button:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-md);
}

.button-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

/* --- Status panel ---------------------------------------------- */

.status-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space);
  box-shadow: var(--shadow-sm);
}

.status-panel dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space);
  margin: 0;
}

.status-item dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.status-item dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.status-item dd a { color: var(--ink); text-decoration: none; }
.status-item dd a:hover { color: var(--accent); }

/* --- The rack -------------------------------------------------- */

.rack {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  background: var(--rail);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Rack rails: punched screw holes down both sides */
.rack::before,
.rack::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 7px;
  background-image: radial-gradient(circle at 50% 5px, var(--hole) 0 2.5px, transparent 3px);
  background-size: 7px 24px;
}

.rack::before { left: 6px; }
.rack::after { right: 6px; }

.unit + .unit { margin-top: 4px; }

.unit > article {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cable-grey);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.15s;
}

.unit:hover > article {
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

/* Patch-cable accent per unit */
.unit[data-cable="blue"]   > article { border-left-color: var(--cable-blue); }
.unit[data-cable="red"]    > article { border-left-color: var(--cable-red); }
.unit[data-cable="yellow"] > article { border-left-color: var(--cable-yellow); }
.unit[data-cable="green"]  > article { border-left-color: var(--cable-green); }
.unit[data-cable="purple"] > article { border-left-color: var(--cable-purple); }
.unit[data-cable="orange"] > article { border-left-color: var(--cable-orange); }
.unit[data-cable="cyan"]   > article { border-left-color: var(--cable-cyan); }
.unit[data-cable="white"]  > article { border-left-color: var(--cable-grey); }

.unit-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(6, 168, 247, 0.18);
  flex: none;
}

.unit-size {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.15em 0.4em;
  flex: none;
}

.unit-body h2,
.unit-body h3 {
  font-size: var(--step-1);
  margin: 0 0 0.15em;
}

.unit-body h3 a { color: var(--ink); text-decoration: none; }
.unit-body h3 a:hover { color: var(--accent); }

.unit-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: var(--measure);
}

.unit-vents {
  width: 34px;
  height: 22px;
  flex: none;
  border-radius: 2px;
  background-image: repeating-linear-gradient(
    180deg,
    var(--hole) 0 2px,
    transparent 2px 5px
  );
}

/* --- Callout --------------------------------------------------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.callout h2 { margin-bottom: 0.3em; }
.callout p { color: var(--ink-soft); max-width: var(--measure); margin-inline: auto; }

.callout .button + .button { margin-left: 0.5rem; }

/* --- Products (apps) ------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space);
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.15s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-shot {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
}

.product-shot img { width: 100%; height: 100%; object-fit: cover; }

.product-body { padding: var(--space); flex: 1; }
.product-body h3 { margin-bottom: 0.35em; }
.product-body h3 a { color: var(--ink); text-decoration: none; }
.product-body h3 a:hover { color: var(--accent); }
.product-body p { color: var(--ink-soft); font-size: 0.93rem; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.product-meta li {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.2em 0.5em;
}

.product-foot { padding: 0 var(--space) var(--space); }

/* --- Product detail page --------------------------------------- */

.product-hero {
  display: grid;
  gap: calc(var(--space) * 1.5);
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
  .product-hero { grid-template-columns: 1.05fr 1fr; align-items: center; }
}

.figure-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.figure-frame > .placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: var(--surface-2);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.figure-frame figcaption {
  padding: 0.7rem var(--space);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space);
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space);
  box-shadow: var(--shadow-sm);
}

.download-panel h2 { margin-bottom: 0.3em; }

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space);
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list h3 {
  font-size: 1rem;
  margin-bottom: 0.3em;
  padding-left: 0.85rem;
  border-left: 3px solid var(--brand);
}

.feature-list p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }

.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4em; }

.faq dt { font-weight: 650; margin-bottom: 0.3em; }

.faq dd {
  margin: 0 0 1.2em;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}

.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space);
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.contact-card .big {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Long email addresses get their own smaller size so they do not
   break mid-word inside the card. */
.contact-card .big-email {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.contact-card .big a { color: var(--ink); text-decoration: none; }
.contact-card .big a:hover { color: var(--accent); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card p:not(.big) { color: var(--ink-soft); font-size: 0.93rem; }

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

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding-block: calc(var(--space) * 2);
  padding-inline: max(var(--space), calc((100% - var(--page)) / 2));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space);
}

.footer-grid p { margin: 0 0 0.4em; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }

.footer-brand {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.copyright {
  margin: var(--space) 0 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* --- Small screens --------------------------------------------- */

@media (max-width: 46rem) {
  .site-header { gap: 1rem; }
  .brand { margin-right: 0; width: 100%; }
  .site-logo { height: 40px; }
  .remote-button { width: 100%; justify-content: center; }
  .unit > article { grid-template-columns: auto auto 1fr; }
  .unit-vents { display: none; }
  .rack { padding: 12px 14px; }
  .rack::before, .rack::after { display: none; }
  .callout .button + .button { margin-left: 0; }
}

/* --- Motion ---------------------------------------------------- */

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