/* confocalservice.com: Coastal Microscopes confocal service site */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&display=swap');

:root {
  --blue: #0178da;
  --blue-dark: #015aa6;
  --green: #2fa846;
  --ink: #16202b;
  --ink-soft: #4a5663;
  --line: #dfe4ea;
  --paper: #ffffff;
  --mist: #f4f7fa;
  --l405: #7a3cff;
  --l488: #00a8e8;
  --l561: #c6d400;
  --l640: #e8322b;
  --measure: 68ch;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* Laser lines: the signature element */
.lasers { display: grid; gap: 5px; }
.lasers span { display: block; height: 3px; border-radius: 2px; }
.lasers span:nth-child(1) { background: var(--l405); }
.lasers span:nth-child(2) { background: var(--l488); }
.lasers span:nth-child(3) { background: var(--l561); }
.lasers span:nth-child(4) { background: var(--l640); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand-name { font-weight: 700; font-variation-settings: 'wdth' 88; font-size: 1.05rem; line-height: 1.1; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .call { font-weight: 700; color: var(--blue); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 12px; }
  .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
}

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 800;
  font-variation-settings: 'wdth' 72;
  max-width: 19ch;
  margin: 0 0 24px;
}
.hero .lasers { width: min(100%, 420px); margin-bottom: 28px; }
.hero p.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--mist); }

/* Sections */
section { padding-block: clamp(48px, 7vw, 88px); }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; font-weight: 800;
  font-variation-settings: 'wdth' 78; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 24ch;
}
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; margin: 0 0 8px; font-variation-settings: 'wdth' 90; }
p { max-width: var(--measure); margin: 0 0 16px; }
.section-intro { color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 36px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.facts div { padding: 22px 20px 22px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding-left: 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
}

/* Two-column layouts */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Systems list: model numbers set large */
.systems { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.systems li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.systems .model { font-weight: 800; font-size: 1.35rem; font-variation-settings: 'wdth' 75; }
.systems .note { color: var(--ink-soft); font-size: 0.95rem; text-align: right; }

/* Service list */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.services article p { color: var(--ink-soft); margin: 0; }
.services article a { font-weight: 700; display: inline-block; margin-top: 8px; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

/* Steps: a real sequence */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 1.8rem; font-variation-settings: 'wdth' 70; color: var(--blue); margin-bottom: 6px; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.checks li { break-inside: avoid; padding: 6px 0 6px 26px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 12px; height: 3px; border-radius: 2px; background: var(--l488); }
@media (max-width: 600px) { .checks { columns: 1; } }

/* Callout band */
.band { background: var(--mist); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { margin: 0; }

/* Quote */
.quote-box { border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 32px); background: var(--paper); }
.quote-fallback p { color: var(--ink-soft); }
.contact-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.contact-lines li { padding: 4px 0; }
.contact-lines strong { font-size: 1.15rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reviews blockquote { margin: 0; border-left: 3px solid var(--l488); padding-left: 16px; }
.reviews p { font-size: 1.02rem; }
.reviews cite { font-style: normal; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-weight: 800; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 30px; width: auto; margin-bottom: 12px; }
.site-footer a { color: var(--ink-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.85rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Page hero for inner pages */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; font-weight: 800;
  font-variation-settings: 'wdth' 74; letter-spacing: -0.012em; margin: 0 0 20px; max-width: 18ch;
}
.page-hero .lasers { width: min(100%, 320px); margin-bottom: 22px; }
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .hero .lasers span { transform-origin: left; animation: scan 900ms cubic-bezier(.2,.7,.2,1) both; }
  .hero .lasers span:nth-child(2) { animation-delay: 90ms; }
  .hero .lasers span:nth-child(3) { animation-delay: 180ms; }
  .hero .lasers span:nth-child(4) { animation-delay: 270ms; }
  @keyframes scan { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
