/*
Theme Name: Local Computer Nerds
Theme URI: https://localcomputernerds.com
Author: Local Computer Nerds
Description: Custom one-page theme for Local Computer Nerds - friendly, affordable IT help in Statesville, NC. Optimized for the BrowZafe post-quantum browser (ASCII-safe, zero phone-home) and normal browsers alike.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lcn
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --paper: #f2f5f7;        /* page background */
  --panel: #ffffff;        /* cards */
  --ink: #101b2d;          /* deep navy text */
  --ink-soft: #45526b;     /* secondary text */
  --line: #d8dfe6;         /* hairlines */
  --accent: #ffc53d;       /* label-maker yellow */
  --accent-ink: #7a5a00;
  --term-bg: #0d1520;      /* terminal window */
  --term-green: #7ee787;   /* terminal output */
  --term-dim: #8b98a9;
  --radius: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
/* Two-declaration pattern: the plain rem size is honoured by engines that don't
   support clamp()/vw (e.g. BrowZafe drops the clamp declaration and keeps the
   size above it); full browsers take the fluid clamp() on the next line. */
h1 { font-size: 3rem; font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: 2rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); }

/* ============================================================
   LIST MARKERS (real markup, ASCII)
   Rendered as inline spans in the markup instead of ::before glyphs,
   so they survive engines that don't generate pseudo-element content
   and don't rely on non-ASCII characters (which render blank on the
   BrowZafe stroke font). "+" = an included item, ">" = a step/next.
   ============================================================ */
.mk { font-family: var(--font-mono); font-weight: 700; color: var(--accent-ink); margin-right: .45em; }
.product-points .mk { color: var(--term-green); }
.step-flag {
  font-family: var(--font-mono); font-size: .74rem;
  background: var(--ink); color: var(--term-green);
  display: inline-block; padding: 3px 9px; border-radius: 6px; margin-bottom: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(16,27,45,.15); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,245,247,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
/* Default logo: the dragon emblem, self-hosted (see header.php). Used whenever
   no custom logo has been uploaded under Appearance -> Customize -> Site Identity. */
.brand .brand-mark { height: 40px; width: 40px; border-radius: 8px; display: block; }
.brand img.custom-logo { max-height: 44px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 9px 13px; border-radius: 999px; color: var(--ink-soft);
}
.site-nav a:hover { background: #e4eaef; color: var(--ink); }
.header-call { white-space: nowrap; font-size: .92rem; padding: 11px 20px; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--ink); border-radius: 10px;
  font-family: var(--font-mono); font-size: .85rem; padding: 8px 12px; cursor: pointer;
}

@media (max-width: 880px) {
  .site-nav { display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); margin: 0; padding: 12px 24px 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .nav-toggle { display: block; }
  .header-call { display: none; }
}

/* ============================================================
   HERO + TERMINAL (signature)
   ============================================================ */
.hero { padding: 96px 0 90px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 32em; }
/* Rotating hero headline: fade between the two pitch lines. */
#lcn-hero-headline { opacity: 1; transition: opacity .5s ease; min-height: 2.24em; }
/* The longer alternate pitch renders smaller and a touch looser for readability. */
#lcn-hero-headline.is-small { font-size: 1.5rem; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.32; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-meta {
  margin-top: 30px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft);
  display: flex; gap: 22px; flex-wrap: wrap;
}
/* hero-meta bullets are real .mk spans in the markup (see .mk) */

.terminal {
  background: var(--term-bg);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(16,27,45,.28);
  font-family: var(--font-mono);
  font-size: .88rem;
  color: #dbe4ee;
  overflow: hidden;
  transform: rotate(1.2deg);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4657; }
.terminal-bar i:nth-child(1) { background: #ff6058; }
.terminal-bar i:nth-child(2) { background: #ffc130; }
.terminal-bar i:nth-child(3) { background: #27ca40; }
.terminal-bar .terminal-title { margin-left: 8px; color: var(--term-dim); font-size: .78rem; }
.terminal-body { padding: 20px 22px 26px; min-height: 250px; }
.terminal-body .line { display: block; margin: 0 0 6px; white-space: pre-wrap; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .ok { color: var(--term-green); }
.terminal-body .dim { color: var(--term-dim); }
.cursor {
  display: inline-block; width: 9px; height: 1.1em; vertical-align: text-bottom;
  background: var(--term-green); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 880px) {
  .hero { padding: 60px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .terminal { transform: none; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,27,45,.1); }
.service-flag {
  font-family: var(--font-mono); font-size: .74rem;
  background: var(--ink); color: var(--term-green);
  display: inline-block; padding: 3px 9px; border-radius: 6px; margin-bottom: 14px;
}
.service-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.about-points li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-size: .95rem;
}
.about-points strong { font-family: var(--font-display); display: block; }
.about-points span { color: var(--ink-soft); }
@media (max-width: 880px) { .about .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   CARD GRID (dark section + card grid, used by Free Tools)
   ============================================================ */
.projects { background: var(--term-bg); color: #e8eef5; }
.projects .eyebrow { color: var(--term-dim); }
.projects .section-head p { color: #b8c4d3; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 32px 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: transform .15s ease, border-color .15s ease;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.3); }
.project-card h3 { font-size: 1.35rem; color: #fff; }
.project-card p { color: #b8c4d3; font-size: .95rem; }
.project-card .btn { margin-top: auto; }
.status-badge {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; display: inline-block;
}
.status-live { background: rgba(126,231,135,.12); color: var(--term-green); border: 1px solid rgba(126,231,135,.4); }
.status-dev { background: rgba(255,197,61,.12); color: var(--accent); border: 1px solid rgba(255,197,61,.45); }
@media (max-width: 880px) { .projects-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.quote-card blockquote { margin: 0 0 16px; font-size: .98rem; }
.quote-card cite { font-family: var(--font-mono); font-style: normal; font-size: .78rem; color: var(--ink-soft); }
.stars { color: var(--accent-ink); letter-spacing: 2px; font-size: .95rem; display: inline-block; margin-bottom: 10px; }
.review-summary { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-soft); }
.review-summary .stars { margin: 0 6px 0 0; }
.review-invite { max-width: 520px; text-align: center; margin: 0 auto; padding: 36px 30px; }
.review-invite blockquote { font-size: 1.05rem; }
.review-cta { text-align: center; margin: 34px 0 0; }
@media (max-width: 880px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT / CTA BAND
   ============================================================ */
.contact { background: var(--accent); }
.contact .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact h2 { margin-bottom: .3em; }
.contact p { color: var(--accent-ink); }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  background: var(--panel); border-radius: 12px; padding: 18px 22px;
  display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; border: 2px solid transparent;
}
.contact-card:hover { border-color: var(--ink); }
.contact-card .label { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.contact-card .value { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
@media (max-width: 880px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #aab6c6; padding: 40px 0; font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer a { color: #dbe4ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-mono { font-family: var(--font-mono); font-size: .78rem; }

/* ============================================================
   BLOG / INNER PAGES (fallback templates)
   ============================================================ */
.page-plain { padding: 70px 0; }
.page-plain .wrap { max-width: 760px; }
.page-plain article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; margin-bottom: 28px; }
.page-plain h1.entry-title, .page-plain h2.entry-title { margin-top: 0; }
.entry-title a { text-decoration: none; }
.entry-meta { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); margin-bottom: 18px; }
@media (max-width: 660px) { .page-plain article { padding: 26px 20px; } }

/* ============================================================
   MULTI-PAGE: PAGE TITLE HEADER & SERVICE ROWS
   ============================================================ */
.page-title { background: var(--panel); border-bottom: 1px solid var(--line); padding: 70px 0 54px; }
.page-title .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; margin: 0; }
.service-rows { display: grid; gap: 20px; max-width: 820px; }
.service-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.service-row h2 { font-size: 1.3rem; margin-bottom: .4em; }
.service-row p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.service-row .service-flag { margin: 4px 0 0; }
@media (max-width: 660px) { .service-row { grid-template-columns: 1fr; gap: 10px; } }

/* ============================================================
   INTERACTIVE TERMINAL (Smart Estimate, hero)
   ============================================================ */
.terminal-live { transform: none; display: flex; flex-direction: column; }
.terminal-live .terminal-body {
  min-height: 300px; max-height: 60vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.terminal-body .line.warn { color: var(--accent); }

.term-input-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.term-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #eaf1f8; font-family: var(--font-mono); font-size: .88rem;
  caret-color: var(--term-green); padding: 2px 0;
}
.term-input::placeholder { color: var(--term-dim); }

.term-contact {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14);
}
.term-contact .term-input {
  border: 1px solid rgba(255,255,255,.16); border-radius: 8px;
  padding: 9px 11px; background: rgba(255,255,255,.03);
}
.term-contact .term-input:focus { border-color: var(--accent); }
.term-send { align-self: flex-start; padding: 10px 18px; font-size: .9rem; cursor: pointer; }
.term-status { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); min-height: 1em; }

/* Honeypot — visually hidden, off-screen, never focusable by real users. */
.lcn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   SMART ESTIMATE SECTION + FORM
   ============================================================ */
.estimate { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.estimate .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.estimate-intro h2 { margin-bottom: .35em; }
.estimate-intro p { color: var(--ink-soft); }
.estimate-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
/* estimate bullets are real .mk spans in the markup */
.estimate-points a { color: var(--ink); font-weight: 600; }

.lcn-estimate {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: grid; gap: 16px;
}
.lcn-estimate .field { display: grid; gap: 6px; }
.lcn-estimate .field-label { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.lcn-estimate .field-label small { text-transform: none; letter-spacing: 0; }
.lcn-estimate textarea,
.lcn-estimate input[type="text"] {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; resize: vertical;
}
.lcn-estimate textarea:focus,
.lcn-estimate input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,197,61,.25); }
.lcn-estimate .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lcn-estimate button[type="submit"] { justify-self: start; cursor: pointer; }

/* Live triage feedback */
.lcn-live {
  border: 1px solid var(--line); border-left: 4px solid var(--term-green);
  background: var(--panel); border-radius: 0 10px 10px 0; padding: 14px 16px;
  display: grid; gap: 4px; animation: lcn-pop .18s ease;
}
.lcn-live.is-urgent { border-left-color: #ff6058; }
.lcn-live-flag { font-family: var(--font-mono); font-size: .72rem; background: var(--ink); color: var(--term-green); justify-self: start; padding: 2px 8px; border-radius: 5px; }
.lcn-live strong { font-family: var(--font-display); font-size: 1.05rem; }
.lcn-live-urg { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.lcn-live.is-urgent .lcn-live-urg { color: #c23; font-weight: 700; }
.lcn-live-next { font-size: .93rem; color: var(--ink-soft); }
@keyframes lcn-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.lcn-form-status { font-family: var(--font-mono); font-size: .82rem; margin: 0; min-height: 1em; color: var(--ink-soft); }
.lcn-form-status.is-ok { color: #17795e; }
.lcn-form-status.is-err { color: #c23; }

@media (max-width: 880px) {
  .estimate .wrap { grid-template-columns: 1fr; gap: 32px; }
  .lcn-estimate .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FREE TOOLS (GitHub) GRID
   ============================================================ */
.github-grid { grid-template-columns: repeat(3, 1fr); }
.github-grid .project-card { padding: 26px 24px; }
.repo-meta { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); margin: 6px 0 16px; min-height: 1em; }
@media (max-width: 980px) { .github-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .github-grid { grid-template-columns: 1fr; } }

/* ============================================================
   QUANTUM EXTRAS
   Layered on ONLY when the server has *verified* a genuine BrowZafe
   post-quantum connection and added body.bz-quantum. Everything here is
   presentation-only: it never reveals content that isn't already public,
   so a forged capability signal can gain nothing. The base skin is fully
   usable without any of this.
   ============================================================ */
.bz-quantum-badge { display: none; }           /* hidden for everyone by default */
body.bz-quantum .bz-quantum-badge {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em;
  color: var(--term-green); background: var(--ink);
  border: 1px solid rgba(126,231,135,.4); border-radius: 999px;
  padding: 4px 11px; white-space: nowrap;
}
/* A faint reassurance line the base skin hides; shown only to verified PQ clients. */
.bz-quantum-note { display: none; }
body.bz-quantum .bz-quantum-note {
  display: block; font-family: var(--font-mono); font-size: .78rem; color: var(--term-green);
}
