/* ══════════════════════════════════════════════════════════════════
   The Computer Guy — Woodstock, IL
   Design language: modern high-tech (light airy blue, red circuit glow)
   grounded in small-town warmth (serif display, brick-amber accents,
   photography of the historic Woodstock Square).
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #f6f9fc;
  --bg-alt: #ecf1f8;
  --panel: #ffffff;
  --panel-strong: #f0f6fc;
  --ink: #17263e;
  --dim: #56677f;
  --accent: #cf2b30;          /* brand red — readable on light */
  --accent-bright: #ef5350;   /* glow/graphics only, not text */
  --accent-soft: rgba(207, 43, 48, 0.09);
  --amber: #b3600e;
  --amber-soft: rgba(179, 96, 14, 0.1);
  --line: rgba(23, 55, 99, 0.14);
  --radius: 14px;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 16px 44px rgba(23, 43, 77, 0.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, .wordmark { font-family: var(--serif); letter-spacing: 0.01em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #ffffff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(246, 249, 252, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246, 249, 252, 0.94); box-shadow: 0 6px 24px rgba(23, 43, 77, 0.07); }

.nav {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand { position: relative; display: flex; align-items: center; gap: 0.7rem; color: var(--ink); min-width: 220px; }
.brand:hover { text-decoration: none; }

/* Logo mark — relative positioned for natural scroll behavior */
.logo-mark {
  position: relative; top: 0; left: 0;
  height: 140px; width: 320px;
  max-width: none;
  margin: 0;
}

.wordmark { font-size: 1.18rem; font-weight: 700; line-height: 1.15; }
.wordmark small { display: block; font-family: var(--sans); font-size: 0.68rem; font-weight: 400; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links { display: flex; gap: 0.4rem; margin-left: auto; list-style: none; align-items: center; }
.nav-links a {
  color: var(--dim); padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-cta {
  border: 1px solid #cf2b30; color: #cf2b30 !important;
  box-shadow: 0 0 12px rgba(207, 43, 48, 0.15);
}
.nav-cta:hover { background: rgba(207, 43, 48, 0.08) !important; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-size: 1.3rem; line-height: 1; padding: 0.4rem 0.65rem; cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}

.hero-glow, .hero-glow-2 {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: -2; pointer-events: none;
}
.hero-glow { width: 620px; height: 620px; top: -260px; right: -140px; background: rgba(239, 83, 80, 0.16); }
.hero-glow-2 { width: 480px; height: 480px; bottom: -240px; left: -140px; background: rgba(226, 158, 63, 0.13); }

.circuit { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; }
.circuit path {
  fill: none; stroke: rgba(207, 43, 48, 0.3); stroke-width: 1.5;
  stroke-dasharray: 6 10; animation: trace 26s linear infinite;
}
.circuit circle { fill: rgba(207, 43, 48, 0.5); animation: nodePulse 3.2s ease-in-out infinite; }
.circuit circle:nth-of-type(2n) { animation-delay: 1.1s; }
.circuit circle:nth-of-type(3n) { animation-delay: 2.2s; }
@keyframes trace { to { stroke-dashoffset: -640; } }
@keyframes nodePulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--amber); }

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.12; font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 24px rgba(239, 83, 80, 0.35); }

.hero .lede { color: var(--dim); font-size: 1.1rem; max-width: 34rem; margin-bottom: 1.8rem; }

.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border-radius: 10px; font-size: 0.98rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink); background: var(--panel);
  cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; background: var(--panel-strong); }
.btn-primary {
  background: linear-gradient(135deg, #ef5350, #cf2b30); color: #ffffff; border: none;
  box-shadow: 0 8px 22px rgba(207, 43, 48, 0.3);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(207, 43, 48, 0.4); background: linear-gradient(135deg, #f4706d, #db3d42); }

/* Hero photo card — Woodstock Square */
.hero-visual { position: relative; }
.photo-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative;
  animation: floaty 7s ease-in-out infinite;
}
.photo-card img { height: 380px; width: 100%; object-fit: cover; }
.photo-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem; font-size: 0.8rem; color: #dce5f2;
  background: linear-gradient(transparent, rgba(6, 10, 20, 0.88));
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(23, 43, 77, 0.15); backdrop-filter: blur(8px);
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright); animation: nodePulse 2.4s infinite; }
.chip-1 { top: -16px; left: -22px; animation: floaty 6s 0.6s ease-in-out infinite; }
.chip-2 { bottom: 34px; right: -18px; animation: floaty 6.6s 1.2s ease-in-out infinite; }
.chip-2 .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ── Info strip: Visit / Hours / Call — the front-page essentials ─ */
.info-strip { margin-top: clamp(2.2rem, 5vw, 3.6rem); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.info-card {
  display: flex; gap: 0.95rem; padding: 1.15rem 1.25rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}
.info-card:hover { border-color: rgba(207, 43, 48, 0.45); transform: translateY(-3px); }
.info-icon {
  flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.25rem; background: var(--accent-soft); border: 1px solid rgba(207, 43, 48, 0.28);
}
.info-card h3 { font-size: 0.78rem; font-family: var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.15rem; }
.info-card p { font-size: 0.98rem; line-height: 1.45; }
.info-card a { color: var(--ink); }
.info-card a:hover { color: var(--accent); }
.open-now { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 42rem; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0.4rem 0 0.7rem; }
.section-head p { color: var(--dim); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service-card {
  padding: 1.5rem 1.4rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.service-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 180px at 20% 0%, rgba(207, 43, 48, 0.08), transparent 65%);
  transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(207, 43, 48, 0.4); box-shadow: var(--shadow); }
.service-card:hover::after { opacity: 1; }
.service-icon { font-size: 1.7rem; margin-bottom: 0.8rem; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.service-card p { color: var(--dim); font-size: 0.93rem; }

/* Split feature (photo + copy + stats) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .photo-card { animation: none; }
.split .photo-card img { height: 420px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.stat {
  padding: 1rem; text-align: center; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.stat .num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.stat .lbl { font-size: 0.78rem; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }

.checklist { list-style: none; margin: 1.2rem 0 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: 0.65rem; color: var(--dim); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.checklist li strong { color: var(--ink); }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-strip figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.photo-strip img { height: 230px; width: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-strip figure:hover img { transform: scale(1.05); }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55rem 0.9rem;
  font-size: 0.78rem; color: #dce5f2; background: linear-gradient(transparent, rgba(6, 10, 20, 0.88));
}

/* CTA banner */
.cta-banner {
  border-radius: var(--radius); border: 1px solid rgba(207, 43, 48, 0.28);
  background:
    radial-gradient(600px 220px at 15% 0%, rgba(239, 83, 80, 0.14), transparent 60%),
    radial-gradient(500px 220px at 90% 100%, rgba(226, 158, 63, 0.12), transparent 60%),
    var(--bg-alt);
  padding: clamp(2rem, 5vw, 3.2rem); text-align: center;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.6rem; }
.cta-banner p { color: var(--dim); margin-bottom: 1.4rem; }
.cta-banner .btn-row { justify-content: center; }

/* ── Timeline (About) ───────────────────────────────────────────── */
.timeline { position: relative; margin: 2.5rem 0; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), rgba(207, 43, 48, 0.08));
}
.tl-item { position: relative; padding: 0 0 2rem 1.4rem; }
.tl-item::before {
  content: ''; position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 10px rgba(207, 43, 48, 0.45);
}
.tl-year { font-family: var(--serif); color: var(--amber); font-weight: 700; font-size: 1.05rem; }
.tl-item h3 { margin: 0.15rem 0 0.35rem; font-size: 1.2rem; }
.tl-item p { color: var(--dim); max-width: 38rem; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

/* Team placeholder */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.team-card { text-align: center; padding: 1.6rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar-ph {
  width: 96px; height: 96px; margin: 0 auto 0.9rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--amber-soft));
  border: 1px dashed var(--line);
}
.team-card h3 { font-size: 1.1rem; }
.team-card .role { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.5rem; }
.team-card p { color: var(--dim); font-size: 0.9rem; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.4rem; align-items: start; }

.contact-cards { display: grid; gap: 1rem; }

.form-card { padding: 1.8rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.85rem; color: var(--dim); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 9px; font: inherit; color: var(--ink);
  background: #ffffff; border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(207, 43, 48, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--dim); margin-top: 0.8rem; }
.form-success {
  display: none; padding: 0.9rem 1rem; border-radius: 10px; margin-top: 1rem;
  background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.45); color: var(--ink); font-size: 0.92rem;
}
.form-success.show { display: block; }

.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 2.6rem; }
.map-card iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(0.25) contrast(1.05); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.2rem; margin-bottom: 2rem; }
.site-footer h3 { font-size: 0.82rem; font-family: var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.8rem; }
.site-footer p, .site-footer li { color: var(--dim); font-size: 0.92rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.hours-table { width: 100%; font-size: 0.92rem; color: var(--dim); border-collapse: collapse; }
.hours-table td { padding: 0.22rem 0; }
.hours-table td:last-child { text-align: right; color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--dim); }

/* ── Page hero (About / Contact) ────────────────────────────────── */
.page-hero { position: relative; padding: clamp(3.4rem, 8vw, 5.4rem) 0 clamp(2.2rem, 5vw, 3.4rem); overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.4rem 0 0.8rem; }
.page-hero .lede { color: var(--dim); max-width: 40rem; font-size: 1.06rem; }

/* ── Reveal-on-scroll ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
/* No-JS fallback: content must never stay hidden (older browsers ignore
   this query and still need main.js, which every modern browser runs). */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner, .split, .contact-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .photo-card img { height: 300px; }
  .services-grid, .values-grid, .team-grid, .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .logo-mark { position: relative; top: auto; height: 70px; width: auto; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: rgba(250, 252, 255, 0.98); border-bottom: 1px solid var(--line);
    padding: 0.8rem 4vw 1.2rem; margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }
  .info-grid, .services-grid, .values-grid, .team-grid, .photo-strip, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-chip { display: none; }
  .photo-card img { height: 230px; }
  .split .photo-card img { height: 260px; }
}

/* ── Motion preferences ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-card, .hero-chip, .circuit path, .circuit circle { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
