/* =========================================================
   Ashburn Console Repair — site styles
   Concept: a local repair bench seen through a game HUD.
   Plain CSS, no build step. Colors and fonts are CSS variables
   below, so one change re-themes the whole site.
   Fonts load from Google Fonts via <link> tags in each page head.
   ========================================================= */

:root {
  --ink:          #16133d;   /* deep indigo: text, header, footer */
  --ink-soft:     #4d4f72;   /* secondary text */
  --brand:        #5136f2;   /* electric violet: links, accents */
  --brand-dark:   #3a22c9;   /* violet hover */
  --accent:       #ffc83d;   /* arcade yellow: primary buttons */
  --accent-dark:  #f2b411;
  --line:         #dcddf0;   /* hairlines / borders */
  --bg:           #ffffff;
  --bg-alt:       #f4f5fb;   /* cool paper for alternating bands */
  --bg-dark:      #16133d;
  --max:          1160px;
  --radius:       6px;
  --font-head: 'Chakra Petch', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: .55em; }
h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .4em; letter-spacing: 0; }
p  { margin-bottom: 1rem; color: var(--ink-soft); max-width: 72ch; }
a  { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- buttons: chunky, pressable, like a real controller button ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 13px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, background .12s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--lg { padding: 17px 34px; font-size: 1.1rem; }

.hero .btn { border-color: var(--ink); }
.hero .btn--ghost { background: rgba(255,255,255,.06); box-shadow: 0 5px 0 rgba(255,255,255,.35); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.14); }
.hero .btn--ghost:active { box-shadow: 0 1px 0 rgba(255,255,255,.35); }

.muted { color: var(--ink-soft); font-size: .92rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--brand);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 22px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.nav__logo:hover { text-decoration: none; }
.nav__logo strong { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
/* d-pad mark */
.nav__logo::before {
  content: ""; width: 30px; height: 30px; flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 4px 4px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 10px 26px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 26px 10px no-repeat;
  border-radius: 4px;
}
.nav__logo img { max-height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__links a { color: rgba(255,255,255,.88); font-weight: 500; font-size: .97rem; }
.nav__links a:hover { color: #fff; text-decoration: none; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: -14px;
  background: var(--ink); border: 2px solid var(--brand); border-radius: var(--radius);
  min-width: 280px; padding: 8px 0; margin-top: 12px;
  box-shadow: 6px 6px 0 rgba(81,54,242,.45);
}
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; display: none; }
.has-dropdown:hover::after, .has-dropdown:focus-within::after { display: block; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 10px 18px; font-size: .94rem; }
.dropdown a:hover { background: rgba(81,54,242,.35); }

.nav__call {
  background: var(--accent); color: var(--ink) !important;
  padding: 9px 16px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700 !important;
  box-shadow: 0 3px 0 var(--accent-dark);
}
.nav__call:hover { background: #ffd566; }

.nav__toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: #fff; }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 3px solid var(--brand); padding: 10px 22px 18px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 9px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; margin: 4px 0 0; padding: 0 0 0 14px; min-width: 0; background: none; }
  .nav__toggle { display: block; }
  .nav__call { display: inline-block; margin-top: 6px; }
}

/* ---------- hero: violet duotone, scanlines, HUD corner brackets ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.9); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    linear-gradient(100deg, rgba(22,19,61,.96) 0%, rgba(22,19,61,.82) 45%, rgba(81,54,242,.62) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 110px 22px 120px; }
.hero__inner::before, .hero__inner::after {
  content: ""; position: absolute; width: 46px; height: 46px; border: 3px solid var(--accent);
}
.hero__inner::before { top: 44px; left: 22px; border-right: 0; border-bottom: 0; }
.hero__inner::after  { bottom: 48px; right: 22px; border-left: 0; border-top: 0; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .98rem; font-weight: 600;
  color: var(--accent); margin: 0 0 4px 56px; position: relative;
}
.hero .hero__eyebrow { padding-left: 0; font-size: .98rem; color: var(--accent); }
/* blinking status light: "online and taking repairs" */
.hero__eyebrow::before {
  content: ""; position: absolute; left: -24px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: #35e08a; box-shadow: 0 0 0 4px rgba(53,224,138,.22);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero h1 { color: #fff; margin: 10px 0 18px; max-width: 15ch; padding-left: 34px; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.2rem; max-width: 44ch; padding-left: 34px; }
.hero__cta { margin-top: 30px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding-left: 34px; }

.hero__inner > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero__inner > *:nth-child(2) { animation-delay: .07s; }
.hero__inner > *:nth-child(3) { animation-delay: .14s; }
.hero__inner > *:nth-child(4) { animation-delay: .21s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 600px) {
  .hero__inner { padding: 84px 22px 92px; }
  .hero__inner::before { top: 28px; } .hero__inner::after { bottom: 30px; }
  .hero h1, .hero p, .hero__cta { padding-left: 0; }
  .hero__eyebrow { margin-left: 24px; }
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section__lead { max-width: 68ch; font-size: 1.1rem; }
.section__lead p { font-size: inherit; }
.section .btn { margin-top: 8px; }
.center { text-align: center; }
.center .section__lead, .center p { margin-left: auto; margin-right: auto; }

/* photo strips between sections: framed like a screen */
.section > .wrap > img {
  border: 3px solid var(--ink);
  border-radius: 10px !important;
  box-shadow: 10px 10px 0 var(--brand);
  aspect-ratio: 21 / 8; object-fit: cover;
  margin: 18px 0 28px;
  width: calc(100% - 10px) !important;
}
@media (max-width: 600px) { .section > .wrap > img { aspect-ratio: 16 / 10; box-shadow: 6px 6px 0 var(--brand); } }

.split h1 { margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* cards: cartridge-style notch in the top-right corner */
.card {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  background-image: linear-gradient(225deg, var(--brand) 0 16px, transparent 16px);
}
.section--alt .card { background-color: #fff; }
.card h3 { margin-bottom: .45em; padding-right: 18px; }
.card p:last-child { margin-bottom: 0; }
.grid--2 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.card > a:last-child { display: inline-block; margin-top: 4px; font-family: var(--font-head); font-weight: 700; }
.card:has(a:hover) { border-color: var(--brand); }

/* town / service link tiles: a level-select grid */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border: 2px solid var(--line); border-left: 6px solid var(--brand);
  border-radius: var(--radius); background: #fff; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.04rem;
}
.linklist a::after { content: "\203A"; color: var(--brand); font-size: 1.5rem; line-height: 1; }
.linklist a:hover { border-color: var(--ink); border-left-color: var(--accent); text-decoration: none; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .98rem; }
th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 2px 22px; margin-bottom: 12px; }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.15rem; padding: 17px 44px 17px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--brand); color: #fff; border-radius: 4px; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; background: var(--ink); }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative; text-align: center; padding: 76px 22px; color: #fff;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px),
    var(--brand);
  border-top: 3px solid var(--ink);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); margin-left: auto; margin-right: auto; }
.cta-band .btn { background: var(--accent); color: var(--ink); }

/* ---------- estimate / contact form ---------- */
.form-card {
  background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 32px;
  box-shadow: 10px 10px 0 var(--brand);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px; box-shadow: 6px 6px 0 var(--brand); } }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--bg-alt);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(81,54,242,.18); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 60px 0 28px; border-top: 3px solid var(--accent); }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.08rem; }
.site-footer p { max-width: none; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .95rem; font-weight: 500; }
.site-footer a:hover { color: #fff; }
.site-footer .wc-phone { color: var(--accent); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; font-size: .86rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .84rem; color: rgba(255,255,255,.55) !important; margin-top: 10px; line-height: 1.5; }

/* ---------- article pages (about, FAQ, team, legal) ---------- */
.article { max-width: 820px; }
.article h1 { margin-bottom: 16px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.article h2 { margin-top: 44px; font-size: clamp(1.5rem, 3vw, 2rem); }
.article h3 { margin-top: 26px; }
.article ul, .article ol { margin: 0 0 1rem 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: .45rem; }
.article li::marker { color: var(--brand); }
.article__lead { font-size: 1.15rem; }
.article__date { margin-top: -4px; }
.faq-page h2 { font-size: 1.35rem; margin-top: 34px; }
.contact-list { list-style: none; margin: 22px 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.team-grid { margin-top: 24px; }
.team-card .avatar { width: 56px; height: 56px; border-radius: 8px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.team-card .role { color: var(--brand); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }

/* phone link — class is a stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Lead form status (added when forms were wired to the notification pipeline) */
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: #177245; font-weight: 600; }
.form-status.error { color: #b3261e; font-weight: 600; }
