/* ==========================================================================
   I'll Fix It — VCI Diagnostics & Board Repair
   Palette sampled directly from the illFixit logo: signal blue (wordmark)
   and connection green (Wi-Fi mark), on a clean light ground.
   ========================================================================== */

:root {
  --ink: #f6fafc;          /* page background */
  --panel: #ffffff;        /* card / panel background */
  --panel-2: #eaf5fa;      /* tinted secondary panel */
  --line: #dde9ef;         /* hairline border */
  --line-bright: #b9d3e0;  /* stronger border, hover state */

  --paper: #10222d;        /* primary text, near-navy-black */
  --paper-dim: #4c6672;    /* secondary text */
  --paper-faint: #839aa6;  /* faint / meta text */

  --blue: #0b74a6;         /* primary brand blue, from the wordmark */
  --blue-bright: #1ca7de;  /* lighter blue, hover / decorative */
  --blue-deep: #063f5c;    /* deep navy-blue, headers & hero */
  --green: #178f52;        /* brand green, from the Wi-Fi mark */
  --green-bright: #3fce85; /* lighter green, decorative / verified */

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

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

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Faint signal-dot backdrop, used once, quietly */
body {
  background-image: radial-gradient(circle, rgba(11,116,166,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  background-attachment: fixed;
  background-color: var(--ink);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; color: var(--paper); max-width: 62ch; }
p.lead { font-size: 1.18rem; color: var(--paper-dim); max-width: 52ch; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

hr.trace {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--blue-deep);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6,63,92,0.25);
}
.btn-primary:hover { background: var(--blue); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-bright);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--panel-2); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.2rem);
}
.nav-links a {
  color: var(--paper-dim);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--blue);
}
.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--paper-dim);
  display: none;
}
@media (min-width: 900px) { .nav-phone { display: inline; } }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  color: var(--paper);
  padding: 0.5em 0.7em;
  font-size: 1rem;
}
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
    gap: 1rem;
    box-shadow: 0 16px 30px rgba(6,40,58,0.08);
  }
  .nav-cta .btn-primary { padding: 0.7em 1.1em; font-size: 0.9rem; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Dropdown mega-menu ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none;
  border: none;
  font-family: inherit;
  color: var(--paper-dim);
  font-size: 0.96rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-dropdown-trigger .chev {
  width: 9px; height: 9px;
  transition: transform 0.18s ease;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--paper);
  border-color: var(--blue);
}
.nav-dropdown.open .chev,
.nav-dropdown:focus-within .chev { transform: rotate(180deg); }

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: 0 20px 44px rgba(6,40,58,0.16);
  min-width: 620px;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.2rem;
  z-index: 60;
}
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.nav-dropdown.open .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: grid; }
@media (min-width: 781px) {
  .nav-dropdown:hover .nav-dropdown-panel { display: grid; }
}

.dropdown-col-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.9rem;
}
.dropdown-col a {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  color: var(--paper-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55em 0;
  border-top: 1px solid var(--line);
}
.dropdown-col a:first-of-type { border-top: none; }
.dropdown-col a small {
  color: var(--paper-faint);
  font-size: 0.78rem;
  font-weight: 400;
}
.dropdown-col a:hover { color: var(--blue); }
.dropdown-col a:hover small { color: var(--paper-dim); }
.dropdown-featured {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem;
}
.dropdown-featured a { border-top: none; padding: 0; color: var(--blue-deep); }
.dropdown-featured p {
  font-size: 0.84rem;
  color: var(--paper-faint);
  margin: 0.5em 0 0;
  max-width: none;
}

@media (max-width: 780px) {
  .nav-dropdown-panel {
    position: static;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    background: transparent;
    padding: 0.25rem 0 0.25rem 1.1rem;
    margin-top: 0.5rem;
    border-radius: 0;
  }
  .nav-dropdown-panel::before { display: none; }
  .nav-dropdown.open .nav-dropdown-panel { display: grid; }
  .nav-dropdown:focus-within .nav-dropdown-panel { display: none; }
  .nav-dropdown.open:focus-within .nav-dropdown-panel { display: grid; }
  .dropdown-featured { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  background:
    radial-gradient(circle at center, rgba(28,167,222,0.16) 0%, rgba(28,167,222,0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -25%; left: -12%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background:
    radial-gradient(circle at center, rgba(63,206,133,0.14) 0%, rgba(63,206,133,0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--blue-deep);
  margin-bottom: 1.4em;
}
.eyebrow-line .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23,143,82,0.15);
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow-line .dot { animation: pulse-dot 2.4s ease-in-out infinite; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(23,143,82,0.15); }
  50% { box-shadow: 0 0 0 7px rgba(23,143,82,0.08); }
}

.hero-actions { display: flex; gap: 1rem; margin: 1.8em 0 2.2em; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-top: 1rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--blue-deep);
  font-weight: 600;
}
.stat .num .unit { color: var(--green); font-size: 1.1rem; }
.stat .label {
  font-size: 0.86rem;
  color: var(--paper-faint);
  max-width: 16ch;
}

/* ---------- Diagram card ---------- */
.diagram-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.2rem, 3vw, 2rem);
  position: relative;
  box-shadow: 0 24px 60px rgba(6,40,58,0.10);
}
.diagram-card .cap {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-faint);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.diagram-card .cap .live {
  color: var(--green);
}

/* ---------- Section headers ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 780px) { .section-head { grid-template-columns: 1fr; } }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  margin-bottom: 0.8em;
  display: block;
}

/* ---------- Fault-point list (the 4 wear points) ---------- */
.fault-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 900px) { .fault-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .fault-grid { grid-template-columns: 1fr; } }
.fault-card {
  background: var(--panel);
  padding: 1.8rem 1.6rem;
}
.fault-card .idx {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
  display: block;
}
.fault-card h3 { margin-bottom: 0.5em; font-size: 1.08rem; }
.fault-card p { font-size: 0.94rem; color: var(--paper-dim); margin-bottom: 0; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 780px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(6,40,58,0.04);
}
.service-card:hover { border-color: var(--blue-bright); box-shadow: 0 14px 30px rgba(6,40,58,0.10); transform: translateY(-2px); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  display: block;
  margin-bottom: 1.1rem;
}
.service-card h3 { margin-bottom: 0.55em; }
.service-card p { font-size: 0.95rem; color: var(--paper-dim); margin-bottom: 0.9em; }
.service-card ul {
  margin: 0; padding: 0; list-style: none;
  font-size: 0.88rem; color: var(--paper-dim);
}
.service-card ul li {
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.4em;
}
.service-card ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; background: var(--green);
  border-radius: 50%;
}

/* ---------- Process steps ---------- */
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step .step-num {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 1rem;
}
.process-step h3 { margin-bottom: 0.35em; }
.process-step p { color: var(--paper-dim); margin-bottom: 0; font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 60%, #0e7a52 130%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band h2 { margin-bottom: 0.3em; color: #ffffff; }
.cta-band p { margin-bottom: 0; color: rgba(255,255,255,0.82); }
.cta-band .btn-primary { background: #ffffff; color: var(--blue-deep); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.cta-band .btn-primary:hover { background: #eaf5fa; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; background: var(--panel-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-bright);
}
.footer-grid-wide { grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 0.9fr; }
@media (max-width: 900px) { .footer-grid-wide { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid-wide { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper-faint);
  text-transform: none;
  margin-bottom: 1rem;
  font-weight: 400;
}
.footer-grid a, .footer-grid p {
  display: block;
  color: var(--paper-dim);
  font-size: 0.92rem;
  margin-bottom: 0.6em;
}
.footer-grid a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--paper-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- About page specifics ---------- */
.about-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .about-hero .container { grid-template-columns: 1fr; } }
.value-list { display: flex; flex-direction: column; gap: 1.5rem; }
.value-item { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.value-item h3 { margin-bottom: 0.4em; font-size: 1.1rem; }
.value-item p { color: var(--paper-dim); margin-bottom: 0; font-size: 0.95rem; }

.stat-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(6,40,58,0.10);
}
.stat-panel .stat { padding: 1rem 0; border-top: 1px solid var(--line); }
.stat-panel .stat:first-child { border-top: none; padding-top: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}
.contact-info-item:first-child { border-top: none; padding-top: 0; }
.contact-info-item .k {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--paper-faint);
  display: block;
  margin-bottom: 0.4em;
}
.contact-info-item .v { font-size: 1.05rem; color: var(--paper); }
.contact-info-item .v a:hover { color: var(--blue); }

form.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 20px 50px rgba(6,40,58,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.84rem;
  color: var(--paper-dim);
  margin-bottom: 0.45em;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75em 0.9em;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-note { font-size: 0.82rem; color: var(--paper-faint); margin-top: 0.75rem; margin-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "\2212"; color: var(--green); }
.faq-item p {
  color: var(--paper-dim);
  font-size: 0.95rem;
  padding-bottom: 1.4rem;
  max-width: 68ch;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper-faint);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--paper-faint); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Related services strip ---------- */
.related-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.related-strip a {
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  padding: 0.6em 1em;
  font-size: 0.88rem;
  color: var(--paper-dim);
  background: var(--panel);
}
.related-strip a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Page hero icon (per-vertical line art) ---------- */
.page-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--blue);
}
.page-icon .accent { color: var(--green); }

/* Visible keyboard focus, site-wide */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
