/* Hurley Computers — shared design tokens & site styles */

:root {
  --bg: #f3f2f2;
  --bg-alt: #eae9e9;
  --text: #201f1d;
  --dark: #241e17;
  --gold: #b68235;
  --gold-light: #dbaf70;
  --link: #7d5411;
  --link-hover: #a06f24;
  --hairline: rgba(32, 31, 29, 0.16);
  --hairline-dark: rgba(243, 242, 242, 0.2);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-btn: 4px;
  --radius-card: 6px;
  --content-max: 1180px;

  --shadow-sm: 0 2px 8px rgba(20, 16, 10, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 16, 10, 0.1);
  --shadow-lg: 0 24px 64px rgba(10, 8, 5, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
::selection { background: rgba(182, 130, 53, 0.3); }
img { max-width: 100%; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- Scroll-reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger.in-view > * { animation: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.on-dark .kicker { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---- Header / Nav ---- */
.site-header {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px 48px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(243, 242, 242, 0.88);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  z-index: 100;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.brand-mark {
  width: 64px;
  height: 45px;
  flex: none;
  background: #0a0908;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-name span { color: var(--link); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-nav a { position: relative; padding: 4px 0; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--link); }
.site-nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--link);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-outline:hover { background: var(--gold); color: var(--dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline:active { transform: translateY(0); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  background: var(--gold-light);
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 1px 2px rgba(20, 16, 10, 0.15);
}
.btn-solid:hover { color: var(--dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(182, 130, 53, 0.35); }
.btn-solid:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(182, 130, 53, 0.3); }
.btn-solid:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--link);
  border: 1px solid var(--gold);
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-outline-lg:hover { background: var(--gold); color: var(--dark); transform: translateY(-1px); }
.btn-outline-lg.on-dark {
  color: var(--bg);
  border-color: rgba(243, 242, 242, 0.4);
}
.btn-outline-lg.on-dark:hover { background: rgba(243, 242, 242, 0.12); color: var(--bg); }

/* ---- Section shells ---- */
.section {
  padding: 96px 48px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-alt {
  background: var(--bg-alt);
  padding: 96px 48px;
}
.section-alt > .inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-dark {
  background: var(--dark);
  background-image: radial-gradient(rgba(219, 175, 112, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--bg);
}

/* ---- Hero (home) ---- */
.hero {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-copy { max-width: 560px; position: relative; z-index: 1; }
.hero h1 { font-size: 54px; line-height: 1.1; margin: 0 0 24px; }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lede { font-size: 17px; opacity: 0.85; max-width: 480px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 16px; }
.hero-visual { position: relative; z-index: 1; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, rgba(219, 175, 112, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(4px);
}
.hero-frame {
  border: 6px solid #2d2b2b;
  outline: 1px solid rgba(243, 242, 242, 0.15);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease);
}
.hero-frame:hover { transform: translateY(-4px); }
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s var(--ease);
}
.hero-frame:hover img { transform: scale(1.04); }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--gold-light);
  color: var(--dark);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.spec-pills { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.spec-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  border: 1px solid rgba(219, 175, 112, 0.35);
  padding: 5px 10px;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.spec-pill:hover { border-color: var(--gold-light); background: rgba(219, 175, 112, 0.1); }

/* ---- Page hero (builds/services) ---- */
.page-hero { padding: 72px 48px 16px; max-width: 900px; }
.page-hero.tall { padding-bottom: 56px; }
.page-hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 20px; }
.page-hero p { font-size: 16px; opacity: 0.8; max-width: 640px; margin: 0; }

/* ---- Services grid (home) ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}
.section-head h2 { font-size: 32px; }
.section-head .note { max-width: 340px; font-size: 14px; opacity: 0.75; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }

.num-card {
  border-top: 1px solid var(--hairline);
  padding: 20px 20px 4px 0;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.num-card:hover { transform: translateY(-3px); }
.num-card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
  display: inline-block;
}
.num-card h3 { font-size: 21px; margin: 0 0 12px; }
.num-card p { font-size: 14px; opacity: 0.8; margin: 0; }

/* ---- Why us ---- */
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.why-list { display: grid; gap: 0; }
.why-row {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.3s var(--ease);
}
.why-row:last-child { border-bottom: none; }
.why-row:hover { padding-left: 8px; }
.why-row .num { font-family: var(--font-mono); font-size: 18px; color: var(--gold); width: 40px; flex: none; }
.why-row h4 { font-size: 18px; margin: 0 0 6px; }
.why-row p { margin: 0; font-size: 14px; opacity: 0.8; }

/* ---- Testimonials ---- */
.testimonials-head { text-align: center; margin-bottom: 40px; }
.quote {
  margin: 0;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: var(--font-head);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
}
.quote p {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 16px;
  font-weight: 500;
  position: relative;
}
.quote figcaption { font-size: 12px; opacity: 0.6; }

/* ---- Forms ---- */
.field label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  opacity: 0.7;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(243, 242, 242, 0.3);
  border-radius: var(--radius-btn);
}
.field textarea { resize: vertical; }
.on-light .field input, .on-light .field textarea { border-color: var(--hairline); color: var(--text); }

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(243, 242, 242, 0.3);
  border-radius: var(--radius-btn);
}
.segmented label {
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  border-right: 1px solid rgba(243, 242, 242, 0.3);
  position: relative;
}
.segmented label:last-child { border-right: none; }
.segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented label:has(input:checked) { background: var(--gold-light); color: var(--dark); }

.form-grid { display: grid; gap: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-status { font-size: 13px; margin-top: 4px; min-height: 18px; }
.form-status.ok { color: #7bd88f; }
.form-status.err { color: #f19a9a; }
.form-status.on-light.ok { color: #2f8a4c; }
.form-status.on-light.err { color: #b03a3a; }

/* honeypot field — hidden from real users, catches bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Build cards ---- */
.build-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  background: #ffffff;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.build-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.build-card.popular {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-md);
}
.build-card.popular:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px var(--gold), var(--shadow-lg); }
.build-card .popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.build-card .kicker { margin-bottom: 10px; }
.build-card h3 { font-size: 21px; margin: 0 0 4px; }
.build-card .desc { font-size: 13px; opacity: 0.7; margin: 0 0 18px; }
.build-card .price { font-family: var(--font-mono); font-weight: 600; font-size: 30px; margin: 0 0 20px; }
.build-card .price .unit { font-size: 12px; font-weight: 500; opacity: 0.6; }
.build-card .specs { display: grid; gap: 9px; font-size: 12.5px; margin-bottom: 24px; flex: 1; }
.build-card .spec-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(32, 31, 29, 0.1);
}
.build-card .spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.build-card .spec-row .label { opacity: 0.6; }
.build-card .spec-row .value { font-family: var(--font-mono); text-align: right; }
.build-card .order-btn { text-align: center; margin-top: auto; }

.builds-note { font-size: 12px; opacity: 0.6; margin: 28px 0 0; text-align: center; }

/* ---- Order modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--dark);
  color: var(--bg);
  border-radius: var(--radius-card);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal h3 { font-size: 20px; margin: 0 0 4px; }
.modal .modal-sub { font-size: 13px; opacity: 0.75; margin: 0 0 20px; }
.modal .form-grid { margin-bottom: 8px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-close {
  background: transparent;
  border: 1px solid rgba(243, 242, 242, 0.3);
  color: var(--bg);
  border-radius: var(--radius-btn);
  padding: 13px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* ---- Platform detail rows (services) ---- */
.platform-row {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 48px;
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
}
.platform-row .platform-label { font-family: var(--font-mono); font-size: 14px; color: var(--gold); margin-bottom: 8px; letter-spacing: 0.04em; }
.platform-row h2 { font-size: 26px; }
.platform-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.platform-detail-grid h4 { font-size: 15px; margin: 0 0 8px; color: var(--link); }
.platform-detail-grid p { font-size: 14px; opacity: 0.8; margin: 0; }

/* ---- Build sheet table ---- */
.build-sheet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.build-sheet-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(32, 31, 29, 0.6);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500;
}
.build-sheet-table th:last-child { text-align: right; }
.build-sheet-table td { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.build-sheet-table td:last-child { text-align: right; }
.build-sheet-table tbody { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.build-sheet-table tfoot td { padding: 14px 0 0; border-bottom: none; font-family: var(--font-mono); font-weight: 600; }
.build-sheet-table tfoot td:first-child { font-family: var(--font-head); }

/* ---- Process steps ---- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { border-top: 1px solid var(--hairline); padding-top: 20px; transition: transform 0.3s var(--ease); }
.process-step:hover { transform: translateY(-3px); }
.process-step .num { font-family: var(--font-mono); font-size: 18px; color: var(--gold); margin-bottom: 10px; }
.process-step h4 { font-size: 16px; margin: 0 0 8px; }
.process-step p { font-size: 13px; opacity: 0.8; margin: 0; }

/* ---- CTA bands ---- */
.cta-band { padding: 72px 48px; text-align: center; }
.cta-band h2 { font-size: 26px; margin: 0 0 12px; }
.cta-band.dark h2 { font-size: 28px; margin: 0 0 20px; }
.cta-band p { font-size: 14px; opacity: 0.75; margin: 0 0 24px; }

/* ---- Footer ---- */
.site-footer {
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.7;
  border-top: 1px solid var(--hairline);
}
.site-footer .admin-link { opacity: 0.45; font-size: 11px; transition: opacity 0.2s ease; }
.site-footer .admin-link:hover { opacity: 0.8; }

/* ---- Mobile nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 84vw);
  height: 100vh;
  background: var(--dark);
  color: var(--bg);
  z-index: 200;
  padding: 96px 32px 32px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(243, 242, 242, 0.12);
}
.mobile-nav .btn-solid { margin-top: 20px; align-self: flex-start; }
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.5);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav-scrim.open { display: block; opacity: 1; }

@media (max-width: 900px) {
  .hero, .two-col, .platform-row, .form-row-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .platform-detail-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .nav-scrim { display: block; }
  .hero-badge { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .platform-detail-grid, .process-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .site-header { padding-left: 24px; padding-right: 24px; }
}
