/* =====================================================================
   Shepherds IT Support – shared stylesheet (used by every page)
   ---------------------------------------------------------------------
   Plain CSS, no build step, no web fonts. Designed to be:
   - mobile-first (small screens first, wider screens in @media blocks)
   - dyslexia-friendly: large text, short lines, generous spacing,
     left-aligned text, no italics, cream background, dark text.
   To change colours, edit the variables in :root below.
   ===================================================================== */

/* ---------- 1. Colours & sizes (edit here) ---------- */
:root {
  --bg: #fdfbf3;          /* soft cream page background (less glare) */
  --text: #1c1c1c;        /* near-black body text */
  --muted: #3d3d3d;       /* secondary text – still high contrast */
  --brand: #0b4f8a;       /* dark blue: header, links, buttons */
  --brand-dark: #083a66;  /* hover / pressed */
  --brand-light: #e6f0f9; /* pale blue panels */
  --accent: #fff3c4;      /* pale yellow call-out boxes */
  --accent-border: #c99a00;
  --whatsapp: #0f6b3a;    /* dark green (white text passes AA) */
  --card: #ffffff;
  --line: #d6d2c4;
  --radius: 12px;
  --measure: 38rem;       /* max line length (~65 characters) */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 112.5%;      /* 18px base, scales with the user's settings */
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 700px) { html { font-size: 125%; } } /* 20px on bigger screens */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* System fonts only – no downloads. Verdana/Tahoma are wide, clear fonts. */
  font-family: Verdana, Tahoma, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  overflow-wrap: break-word;
}

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

a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #e08a00; outline-offset: 3px;
}

h1, h2, h3 { line-height: 1.25; color: var(--brand-dark); font-weight: 700; }
h1 { font-size: 1.75rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.6rem; }
strong { font-weight: 700; }
em { font-style: normal; font-weight: 700; } /* no italics – harder to read */

/* Skip link for keyboard / screen-reader users */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: #fff; padding: 0.5rem 1rem; z-index: 10; }

/* Centred content column with a comfortable reading width */
.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.1rem; }
.prose { max-width: var(--measure); }

/* ---------- 3. Header & navigation (same markup on every page) ---------- */
.site-header { background: var(--brand); color: #fff; }
.site-header .wrap { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem;
}
.brand:hover { color: #fff; }
.brand img { width: 2.4rem; height: 2.4rem; border: 2px solid #fff; border-radius: 10px; } /* white edge so the blue logo shows on the blue header */
.tagline { margin: 0.25rem 0 0; font-size: 0.9rem; color: #e8f1fa; }

.site-nav ul {
  list-style: none; margin: 0.8rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 0.45rem 0.8rem; border-radius: 999px;
  color: #fff; text-decoration: none; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.55);
}
.site-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Highlight the current page. Each page sets <body data-page="...">,
   and each nav link has a matching data-nav="..." – so the nav markup
   can stay identical on every page. */
body[data-page="home"]     .site-nav a[data-nav="home"],
body[data-page="windows"]  .site-nav a[data-nav="windows"],
body[data-page="cyber"]    .site-nav a[data-nav="cyber"],
body[data-page="ai"]       .site-nav a[data-nav="ai"],
body[data-page="homeauto"] .site-nav a[data-nav="homeauto"],
body[data-page="websites"] .site-nav a[data-nav="websites"],
body[data-page="contact"]  .site-nav a[data-nav="contact"] {
  background: #fff; color: var(--brand-dark); border-color: #fff; font-weight: 700;
}

/* ---------- 4. Main content blocks ---------- */
main { padding: 1.5rem 0 2.5rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero image at the top of a page */
.hero-img { border-radius: var(--radius); margin: 0.5rem 0 1.5rem; width: 100%; max-width: 46rem; }

/* Pale panel for grouping a section */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin: 1.5rem 0;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Yellow call-out (used for the Windows 10 checker link) */
.callout {
  background: var(--accent); border: 3px solid var(--accent-border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin: 1.5rem 0; max-width: 46rem;
}
.callout h2 { margin-top: 0; font-size: 1.3rem; }
.callout p:last-child { margin-bottom: 0; }

/* "Ask for a quote" box (no prices are shown on this site) */
.quote-box {
  background: var(--card); border: 3px solid var(--brand); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin: 2rem 0 1rem; max-width: 46rem;
}
.quote-box h2 { margin-top: 0; font-size: 1.3rem; }
.quote-box p:last-child { margin-bottom: 0; }

/* Quote */
blockquote {
  margin: 1.5rem 0; padding: 0.8rem 1.1rem; border-left: 6px solid var(--brand);
  background: var(--brand-light); border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure);
}
blockquote p:last-child { margin-bottom: 0; }

/* Lists with more breathing room */
.ticks { padding-left: 1.3rem; }

/* Grid of small cards (AI logos, services links) */
.cards {
  list-style: none; padding: 0; margin: 1rem 0 1.5rem;
  display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards li {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem; text-align: center;
}
.cards img { margin: 0 auto 0.5rem; }
.cards h3 { margin: 0.2rem 0 0.3rem; font-size: 1rem; }
.cards p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.cards a { text-decoration: none; display: block; }
.cards a span { text-decoration: underline; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Images side by side on wide screens */
.gallery { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

figure { margin: 1rem 0 1.5rem; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.2rem; border-radius: var(--radius);
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
  border: 0; font-size: 1rem; line-height: 1.3; text-align: center;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); }
.btn-whatsapp:hover { background: #0a4f2a; }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ---------- 6. Contact buttons block (phone / WhatsApp / email) ---------- */
.contact-band {
  background: var(--brand-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}
.contact-band h2 { margin-top: 0; }
.contact-buttons { display: grid; gap: 0.75rem; margin: 1rem 0; max-width: 46rem; }
.contact-buttons .btn { width: 100%; font-size: 1.05rem; }
.contact-buttons .btn small { display: block; font-weight: 400; font-size: 0.9rem; }
@media (min-width: 700px) { .contact-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* "Get remote help" (Chrome Remote Desktop) under the contact buttons */
.remote-help { max-width: 46rem; margin: 0 0 1rem; }
.remote-help .btn { width: 100%; font-size: 1.05rem; }
.remote-help .btn small { display: block; font-weight: 400; font-size: 0.9rem; }
.remote-help p { margin: 0.5rem 0 0; color: var(--muted); }
@media (min-width: 700px) { .remote-help .btn { width: calc(50% - 0.375rem); } }

/* ---------- 7. Footer (same markup on every page) ---------- */
.site-footer { background: #1f2a36; color: #f2f2f2; padding: 1.75rem 0 2.25rem; font-size: 0.95rem; }
.site-footer a { color: #cfe4ff; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer li { margin: 0; }
.site-footer p { margin: 0 0 0.6rem; }

/* ---------- 8. Silent Disco player (silent-disco.html only) ---------- */
.player { max-width: 34rem; text-align: center; margin: 1rem auto; }
.player .status { font-weight: 700; }
.player .now { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem; margin: 0.8rem 0; }
.player .art { width: 100%; max-width: 22rem; aspect-ratio: 1 / 1; object-fit: cover; margin: 0.5rem auto; border-radius: var(--radius); background: #eee; }
.player .controls { display: flex; gap: 0.8rem; justify-content: center; margin: 1rem 0; }
.player .controls .btn { min-width: 6.5rem; font-size: 1.1rem; }
.history { list-style: none; padding: 0; text-align: left; }
.history li { display: flex; align-items: center; gap: 0.8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; }
.history img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.history span { min-width: 0; }

/* ---------- 9. Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 10. Remote help page (remote-help.html) ---------- */
.jump-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.jump-buttons .btn { flex: 1 1 10rem; font-size: 1.1rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 1.25rem; }
.steps li {
  counter-increment: step; position: relative;
  min-height: 2.6rem; padding: 0.15rem 0 0 3.4rem; margin-bottom: 1.1rem; font-size: 1.05rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps a { overflow-wrap: anywhere; }
h2[tabindex="-1"]:focus { outline: none; }
