/* ============================================
   THE COMPUTER HOSPITAL — Editorial Style
   Multi-page redesign
   ============================================ */

:root {
  --bg: #fafaf7;
  --paper: #ffffff;
  --ink: #0e1116;
  --ink-2: #2a3038;
  --muted: #6b7480;
  --line: #e6e3db;
  --line-2: #d8d4c7;
  --brand: #b8410e;            /* warm rust — different from old generic teal */
  --brand-dark: #8c2f08;
  --accent: #1a3a5c;            /* deep editorial navy */
  --gold: #c9a14a;
  --shadow-sm: 0 1px 2px rgba(14,17,22,0.05);
  --shadow: 0 8px 24px rgba(14,17,22,0.08);
  --shadow-lg: 0 24px 56px rgba(14,17,22,0.18);
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 920px; }

/* ============================================
   TOP BAND
   ============================================ */
.topband {
  background: var(--ink);
  color: #d6d3c8;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topband__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px; padding-bottom: 6px;
}
.topband__left, .topband__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topband a { color: #f0ece1; transition: color 0.2s; }
.topband a:hover { color: var(--gold); text-decoration: none; }
.topband .dot { color: var(--brand); }
.topband .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1px solid #2a3038; border-radius: 999px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
}
.topband .pill .pulse { width: 6px; height: 6px; border-radius: 50%; background: #2dc76a; box-shadow: 0 0 0 0 rgba(45,199,106,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,199,106,0.6); }
  70% { box-shadow: 0 0 0 6px rgba(45,199,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,199,106,0); }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 80px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 44px; height: 44px; display: grid; place-items: center; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.logo__sub { font-family: var(--mono); font-size: 10px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.16em; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav a { font-size: 15px; color: var(--ink-2); font-weight: 500; position: relative; padding: 6px 0; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand);
}

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink); transition: 0.2s;
}
.header__phone:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

.hamburger { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ============================================
   HERO (HOME)
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero__media {
  position: absolute; inset: 0;
  background-image: url('../img/hero-shop.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.1);
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,17,22,0.35) 0%, rgba(14,17,22,0.85) 100%);
}
.hero__container {
  position: relative; z-index: 2;
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  max-width: 1280px; margin: 0 auto;
  padding-left: 28px; padding-right: 28px;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gold);
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.3);
  max-width: 200px;
}
.hero__eyebrow::before { content: 'Est. 1986'; }

.hero__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 14ch;
  margin: 16px 0 0;
}
.hero__title em { font-style: italic; color: var(--gold); font-family: var(--serif); }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 800px;
}
.hero__meta div strong { display: block; font-family: var(--serif); font-size: 32px; color: #fff; font-weight: 400; line-height: 1; }
.hero__meta div span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: #a8a294; margin-top: 8px; }

.hero__cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 40px;
}

.hero__scroll {
  position: absolute; bottom: 24px; right: 28px; z-index: 3;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: #a8a294;
  writing-mode: vertical-rl;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.25s cubic-bezier(0.2,0.7,0.2,1);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 20px 40px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================
   SECTIONS — EDITORIAL
   ============================================ */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--paper); }
.section--ink { background: var(--ink); color: #d6d3c8; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.section__label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--brand);
  margin-bottom: 24px;
}
.section__label::before {
  content: ''; width: 32px; height: 1px; background: var(--brand);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section__head h2 { max-width: 16ch; }
.section__head p { color: var(--muted); font-size: 17px; max-width: 48ch; }

/* ============================================
   EDITORIAL FEATURE GRID (HOME)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}
.feature {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2,0.7,0.2,1);
}
.feature:hover img { transform: scale(1.04); }
.feature__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.feature__caption .num {
  font-family: var(--mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 8px;
}
.feature__caption h3 { color: #fff; font-size: 24px; }
.feature--tall { grid-column: span 6; aspect-ratio: 4/5; }
.feature--wide { grid-column: span 6; aspect-ratio: 16/9; }
.feature--sq   { grid-column: span 4; aspect-ratio: 1/1; }
.feature--half { grid-column: span 6; aspect-ratio: 4/3; }

/* ============================================
   SERVICES (services.html)
   ============================================ */
.services-list { display: grid; gap: 0; }
.service-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.service-row:nth-child(even) .service-row__media { order: 2; }

.service-row__media { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }

.service-row__content .num {
  font-family: var(--mono); font-size: 12px;
  color: var(--brand); letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.service-row__content h3 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 20px;
  max-width: 16ch;
}
.service-row__content p { font-size: 17px; color: var(--ink-2); margin-bottom: 24px; max-width: 50ch; }
.service-row__content ul li {
  font-size: 14px; color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.service-row__content ul li:last-child { border-bottom: 1px solid var(--line); }
.service-row__content ul li::before {
  content: ''; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; flex-shrink: 0;
}

/* ============================================
   ABOUT (about.html)
   ============================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0;
}
.about-hero__media { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__content h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 16px 0 24px;
}
.about-hero__content p { font-size: 18px; color: var(--ink-2); margin-bottom: 18px; max-width: 52ch; }

.timeline { border-left: 2px solid var(--line-2); padding-left: 40px; margin-left: 12px; }
.timeline__item { position: relative; padding: 24px 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -46px; top: 32px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brand);
  border: 3px solid var(--bg);
}
.timeline__year {
  font-family: var(--mono); font-size: 13px; color: var(--brand);
  letter-spacing: 0.16em; margin-bottom: 4px;
}
.timeline__item h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.timeline__item p { color: var(--ink-2); font-size: 15px; max-width: 56ch; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card { text-align: left; }
.team-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 4px; filter: grayscale(0.2); }
.team-card h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 18px; }
.team-card .role { font-family: var(--mono); font-size: 11px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }
.team-card p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ============================================
   CONTACT (contact.html)
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}
.contact-info h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 16px 0 32px;
}
.contact-info p { font-size: 18px; color: var(--ink-2); margin-bottom: 32px; max-width: 48ch; }
.contact-info ul li {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.contact-info ul li:last-child { border-bottom: 1px solid var(--line); }
.contact-info .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  border-radius: 50%; flex-shrink: 0;
}
.contact-info .ico svg { width: 18px; height: 18px; }
.contact-info .info-text strong { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand); margin-bottom: 4px; }
.contact-info .info-text span, .contact-info .info-text a { color: var(--ink); font-size: 17px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.form-card .form-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(184,65,14,0.10);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.map-card { aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 0;
}
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 720px;
  overflow: hidden;
}
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: linear-gradient(180deg, rgba(14,17,22,0.40), rgba(14,17,22,0.85));
  text-align: center;
}
.video-overlay .container { padding: 0; }
.video-overlay h2 { color: #fff; max-width: 18ch; margin: 0 auto 24px; }
.video-overlay p { color: #c2beb2; max-width: 56ch; margin: 0 auto 32px; }
.video-overlay .play {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-bottom: 32px;
  border: 0; cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 16px 40px rgba(184,65,14,0.4);
}
.video-overlay .play:hover { background: var(--brand-dark); transform: scale(1.05); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--ink); color: #a8a294; padding: 80px 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2a3038;
}
.footer .logo__name { color: #fff; }
.footer__about p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 36ch; }
.footer__col h4 { color: #fff; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 20px; }
.footer__col a { display: block; color: #a8a294; font-size: 14px; padding: 6px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold); text-decoration: none; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-size: 12px; color: #6b7480;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); letter-spacing: 0.04em;
}
.footer__socials { display: flex; gap: 10px; margin-top: 24px; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1a1e26; color: #a8a294;
  display: grid; place-items: center;
  transition: 0.2s;
}
.footer__socials a:hover { background: var(--brand); color: #fff; }
.footer__socials svg { width: 16px; height: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .nav, .header__phone { display: none; }
  .hamburger { display: block; }
  .nav.is-open {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column;
    padding: 24px 28px; gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section__head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .feature--tall, .feature--wide, .feature--half { grid-column: span 12; }
  .feature--sq { grid-column: span 6; }
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .about-hero { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .form-card { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .topband__right { display: none; }
  .feature--sq { grid-column: span 12; }
  .field-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}