/* ==========================================================================
   The Computer Doctor — Seattle
   Design tokens: navy #152238, warm white #F7F5F0, cross red #D8232A,
   slate #4C5A6E. Display serif "Lora" (nameplate feel) + body "Work Sans".
   ========================================================================== */

:root{
  --navy: #14223A;
  --navy-2: #1E3153;
  --paper: #F7F4EE;
  --paper-2: #EFEAE0;
  --ink: #202638;
  --ink-soft: #4B5566;
  --red: #D8232A;
  --red-dark: #AB1A20;
  --line: #DDD6C7;
  --white: #FFFFFF;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: var(--red-dark); text-decoration: none; }
a:hover{ text-decoration: underline; }
ul{ margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-soft); }
li{ margin-bottom: .35em; }
img{ max-width: 100%; display: block; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
:focus-visible{ outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Top utility bar ---------- */
.topbar{
  background: var(--navy);
  color: #C9D2E0;
  font-size: .85rem;
}
.topbar .container{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; gap: 12px; flex-wrap: wrap;
}
.topbar a{ color: #E9ECF3; }
.topbar .hours{ opacity: .85; }

/* ---------- Header / Nav ---------- */
.site-header{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px; gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 56px; width: auto; }
.brand-text{ font-family: var(--serif); line-height: 1.1; }
.brand-text .name{ font-size: 1.15rem; font-weight: 600; color: var(--navy); display:block; }
.brand-text .tag{ font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }

nav.main-nav{ }
nav.main-nav ul{
  list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap;
}
nav.main-nav a{
  display: block; padding: 10px 12px; color: var(--ink);
  font-size: .93rem; font-weight: 500; border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"]{
  color: var(--red-dark); text-decoration: none; border-bottom-color: var(--red);
}
.nav-toggle{ display: none; }
.call-btn{
  background: var(--red); color: var(--white) !important; padding: 10px 16px;
  border-radius: 3px; font-weight: 600; white-space: nowrap;
}
.call-btn:hover{ background: var(--red-dark); text-decoration: none; }

@media (max-width: 880px){
  .site-header .container{ flex-wrap: wrap; }
  .nav-toggle{
    display: inline-flex; align-items:center; gap:8px; margin-left:auto;
    background: var(--navy); color: #fff; border: none; padding: 9px 14px;
    border-radius: 3px; font-family: var(--sans); font-weight: 600; font-size: .85rem;
  }
  nav.main-nav{ order: 3; width: 100%; display: none; }
  nav.main-nav.open{ display: block; }
  nav.main-nav ul{ flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; }
  .call-btn{ order: 2; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-block; padding: 13px 22px; border-radius: 3px;
  font-weight: 600; font-size: .95rem; border: 2px solid var(--navy);
}
.btn-primary{ background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }
.btn-ghost{ background: transparent; color: var(--navy); }
.btn-ghost:hover{ background: var(--navy); color: var(--white); text-decoration: none; }
.btn-ghost.on-dark{ color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost.on-dark:hover{ background: var(--white); color: var(--navy); }

/* ---------- Hero ---------- */
.hero{
  background: var(--navy);
  color: #E9ECF3;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--red);
}
.hero .container{
  padding-top: 72px; padding-bottom: 76px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.hero .kicker{
  font-family: var(--sans); font-size: .82rem; letter-spacing: .06em;
  color: #E38A8D; margin-bottom: 14px; font-weight: 600;
}
.hero h1{ color: var(--white); }
.hero p.lede{ color: #C9D2E0; font-size: 1.08rem; max-width: 46ch; }
.hero .actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-mark{ display:flex; justify-content:center; }
.hero-mark svg{ width: 100%; max-width: 300px; height: auto; }

@media (max-width: 800px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-mark{ order: -1; max-width: 220px; margin: 0 auto; }
}

/* ---------- Page header (non-home) ---------- */
.page-head{
  background: var(--navy-2); color: #fff; border-bottom: 6px solid var(--red);
}
.page-head .container{ padding: 46px 24px 40px; }
.page-head h1{ color: #fff; }
.page-head p{ color: #C9D2E0; max-width: 60ch; margin-bottom: 0;}
.breadcrumb{ font-size: .8rem; color: #A9B4C6; margin-bottom: 10px; }
.breadcrumb a{ color: #DCE2ED; }

/* ---------- Sections ---------- */
section{ padding: 64px 0; }
section.tight{ padding: 44px 0; }
.section-alt{ background: var(--paper-2); }
.eyebrow-rule{
  border: none; border-top: 1px solid var(--line); margin: 0 0 40px;
}
.section-intro{ max-width: 62ch; margin-bottom: 36px; }

/* ---------- Cards / grid ---------- */
.grid{ display: grid; gap: 22px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--navy); padding: 26px 24px; border-radius: 2px;
}
.card .icon{ margin-bottom: 14px; }
.card h3{ margin-bottom: 8px; font-size: 1.1rem; }
.card p{ margin-bottom: 0; font-size: .95rem; }
.card.accent{ border-top-color: var(--red); }

/* chart-style checklist */
.chart-list{ list-style: none; padding: 0; margin: 0; }
.chart-list li{
  padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink); margin: 0;
}
.chart-list li:last-child{ border-bottom: none; }
.chart-list li::before{
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 12px; height: 12px; border: 2px solid var(--red);
  transform: rotate(45deg);
}

/* pull quote / testimonial */
.quote-card{
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red);
  padding: 26px 26px; border-radius: 2px;
}
.quote-card p.quote{ font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.05rem; }
.quote-card .attrib{ font-size: .85rem; color: var(--ink-soft); font-weight: 600; margin: 0; }
.quote-card a{ font-weight: 600; }

/* info / callout box */
.callout{
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  padding: 22px 24px; border-radius: 2px; margin: 28px 0;
}
.callout h3{ margin-bottom: 8px; }
.callout p:last-child{ margin-bottom: 0; }

/* two column content */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 800px){ .split{ grid-template-columns: 1fr; } }

/* resource link list */
.resource-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.resource-list li{
  background: var(--white); border: 1px solid var(--line); padding: 16px 18px; border-radius: 2px;
}
.resource-list .r-title{ font-weight: 600; color: var(--navy); display: block; margin-bottom: 2px; }
.resource-list .r-desc{ font-size: .9rem; color: var(--ink-soft); }

/* stat strip */
.stat-strip{ background: var(--navy); color: #fff; }
.stat-strip .container{
  display: flex; flex-wrap: wrap; gap: 32px; padding: 34px 24px; justify-content: space-between;
}
.stat{ min-width: 150px; }
.stat .num{ font-family: var(--serif); font-size: 2rem; color: var(--white); display:block; }
.stat .label{ font-size: .82rem; color: #B9C3D6; }

/* CTA band */
.cta-band{ background: var(--red); color: #fff; text-align: center; }
.cta-band h2{ color: #fff; margin-bottom: 10px; }
.cta-band p{ color: #FBDADB; margin-bottom: 24px; }

/* Contact cards */
.contact-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 780px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{
  background: var(--white); border: 1px solid var(--line); padding: 24px; text-align: center; border-radius: 2px;
}
.contact-card .icon{ margin: 0 auto 12px; }
.contact-card a{ font-weight: 600; }

/* ---------- Footer ---------- */
footer.site-footer{ background: var(--navy); color: #B9C3D6; }
footer.site-footer .container{
  padding: 46px 24px 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
}
@media (max-width: 780px){ footer.site-footer .container{ grid-template-columns: 1fr; } }
footer.site-footer h4{ color: #fff; font-size: .95rem; margin-bottom: 14px; }
footer.site-footer .brand{ margin-bottom: 12px; }
footer.site-footer .brand-text .name{ color: #fff; }
footer.site-footer .brand-text .tag{ color: #9AA6BC; }
footer.site-footer p{ color: #B9C3D6; font-size: .9rem; }
footer.site-footer ul{ list-style: none; padding: 0; margin: 0; }
footer.site-footer li{ margin-bottom: 8px; }
footer.site-footer a{ color: #DCE2ED; font-size: .9rem; }
footer.site-footer a:hover{ color: #fff; }
.footer-bottom{
  border-top: 1px solid #2A3B5C; text-align: center; padding: 16px 24px 26px;
  font-size: .8rem; color: #8996AD;
}

/* Home-only sections */
.services-teaser p.section-intro{ margin-left: auto; margin-right: auto; text-align: center; }
.center{ text-align: center; }
