/* Personalized Computers — site styles */

:root {
  --navy-950: #0b1524;
  --navy-900: #0f1c2e;
  --navy-800: #16263d;
  --navy-700: #2b4262;
  --ink: #142033;
  --text: #3d4a5c;
  --muted: #5b6878;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --red: #d92327;
  --red-dark: #b81d21;
  --red-text: #b91c20;
  --red-on-dark: #ff8a8c;
  --on-dark: #ffffff;
  --on-dark-muted: #c3cede;
  --focus: #ffbf47;
  --radius: 12px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--red-text); }
a:hover { color: var(--red-dark); }

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

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 32px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--on-dark);
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; color: var(--on-dark); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--on-dark); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name span { color: var(--red-text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.site-nav ul a:hover { color: var(--red-text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 799px) {
  .js .nav-toggle { display: block; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 28, 46, 0.08);
  }
  .js .site-nav.is-open { display: flex; }

  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }

  /* Without JavaScript the links simply wrap below the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 12px 20px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1rem; }
}

/* Hero */

.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 40%, rgba(217, 35, 39, 0.12), transparent 70%),
    var(--navy-900);
  color: var(--on-dark-muted);
  padding: 64px 0 72px;
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { padding: 96px 0 104px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--red-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow { color: var(--red-on-dark); }

.hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.125rem, 5.2vw, 3.375rem);
  font-weight: 750;
}

.lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 24px;
  font-size: 0.9375rem;
}

.hero-art { justify-self: center; width: 100%; max-width: 480px; }
.hero-art svg { width: 100%; height: auto; }

.hero-art .links path {
  stroke: var(--navy-700);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  fill: none;
}
.hero-art .node rect { fill: var(--navy-800); stroke: var(--navy-700); }
.hero-art .glyph { fill: none; stroke: #8fb3e0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-art text { fill: #e6edf6; font: 600 13px var(--font); }
.hero-art .ok { fill: #3ccf8e; }
.hero-art .hub-ring { fill: rgba(217, 35, 39, 0.16); }
.hero-art .hub-core { fill: var(--red); }
.hero-art .hub-glyph { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 599px) {
  .hero-art { display: none; }
}

/* Sections */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); }
.section-head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Services */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card .icon {
  box-sizing: content-box;
  padding: 10px;
  margin-bottom: 18px;
  color: var(--red-text);
  background: #fdecec;
  border-radius: 10px;
}

.card h3 { font-size: 1.1875rem; }
.card p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Why */

.why { display: grid; gap: 8px; }

@media (min-width: 900px) {
  .why { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .why .section-head { margin-bottom: 0; }
}

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reasons li { padding-left: 18px; border-left: 3px solid var(--red); }
.reasons h3 { font-size: 1.125rem; }
.reasons p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

/* About */

.about { display: grid; gap: 40px; align-items: center; }
.about h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); max-width: 18em; }
.about h2 + p { margin-top: 18px; max-width: 38em; font-size: 1.125rem; }

@media (min-width: 900px) {
  .about { grid-template-columns: 1.5fr 1fr; gap: 64px; }
}

.facts {
  display: grid;
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts div { padding: 18px 24px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 2px 0 0; color: var(--ink); font-size: 1.25rem; font-weight: 700; }

/* Contact */

.contact {
  background: var(--navy-900);
  color: var(--on-dark-muted);
}

.contact h2 { color: var(--on-dark); }
.contact .section-head > p:last-child { color: var(--on-dark-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  padding: 24px;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
}

.contact-item .icon { color: var(--red-on-dark); margin-bottom: 14px; }
.contact-item h3 {
  margin-bottom: 4px;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-item a,
.contact-item address {
  color: var(--on-dark);
  font-size: 1.0625rem;
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.contact-item .small-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--red-on-dark);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding: 32px 0;
  background: var(--navy-950);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.footer-inner { display: grid; gap: 6px; }
.footer-name { color: var(--on-dark); font-weight: 700; font-size: 1rem; }
.site-footer a { color: var(--on-dark-muted); overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--on-dark); }
