:root {
  --ink: #0b1f2e;
  --ink-soft: #3c5566;
  --paper: #ffffff;
  --paper-soft: #f2f7fa;
  --line: #dde7ec;
  --brand: #0e7fb0;
  --brand-dark: #095a80;
  --brand-ice: #cdeefb;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand-dba { display: block; font-weight: 800; font-size: 1.3rem; color: var(--brand-dark); }
.brand-tag { display: block; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--brand); }
.nav-phone {
  background: var(--brand); color: #fff !important; padding: 8px 14px; border-radius: 999px;
}
.nav-phone:hover { background: var(--brand-dark); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--paper); color: #fff; margin-left: 12px; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; text-align: center; border: none; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand) 60%, #12a0d6);
  color: #fff; padding: 90px 0 70px;
}
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 18px; line-height: 1.1; }
.hero-sub { font-size: 1.15rem; color: var(--brand-ice); margin: 0 0 32px; max-width: 620px; }

/* Services */
.services { padding: 70px 0; background: var(--paper-soft); }
.services h2 { text-align: center; font-size: 2rem; margin: 0 0 40px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.service-card h3 { margin-top: 0; color: var(--brand-dark); }
.service-card ul { padding-left: 20px; margin-bottom: 0; color: var(--ink-soft); }

/* Trust */
.trust { padding: 70px 0; }
.trust h2 { font-size: 1.8rem; margin-top: 0; }
.trust p { color: var(--ink-soft); max-width: 640px; }
.hours { font-weight: 700; color: var(--ink); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 60px 0; text-align: center; }
.cta-band h2 { margin: 0 0 26px; font-size: 1.8rem; }

/* Page hero (inner pages) */
.page-hero { background: var(--paper-soft); padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 12px; }
.page-hero p { color: var(--ink-soft); max-width: 640px; }

/* Form */
.form-section { padding: 50px 0 90px; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.92rem; }
fieldset.form-row { border: none; padding: 0; margin: 0 0 18px; }
fieldset.form-row legend { font-weight: 700; font-size: 0.92rem; padding: 0; margin-bottom: 6px; }
.check-group { display: flex; flex-wrap: wrap; gap: 14px; }
.check-item { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check-item input { width: 16px; height: 16px; }
.optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

.consent-block {
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 24px 0;
}
.consent-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.consent-check span { font-size: 0.92rem; color: var(--ink); }
.consent-check a { color: var(--brand-dark); }
.consent-fineprint { font-size: 0.8rem; color: var(--ink-soft); margin: 12px 0 0; }

.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.success { color: #0a7a3d; }
.form-status.error { color: #b3261e; }

/* Legal pages */
.legal { padding: 60px 0 100px; }
.legal h1 { margin-bottom: 4px; }
.legal-updated { color: var(--ink-soft); margin-top: 0; margin-bottom: 32px; }
.legal h2 { margin-top: 36px; color: var(--brand-dark); }
.legal ul { padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-soft); padding: 40px 0 24px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.footer-brand { font-weight: 800; margin: 0 0 6px; }
.footer-brand span { display: block; font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); }
.footer-line { margin: 4px 0; font-size: 0.92rem; }
.footer-line a { color: var(--ink); text-decoration: none; }
.footer-line a:hover { color: var(--brand); }
.footer-copy { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }

/* Tech assembly showcase */
.assembly-section { background: var(--ink); }

.assembly-scroll { position: relative; height: 260vh; }
.assembly-sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; background: #e9edf0;
}
.assembly-canvas, .assembly-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.assembly-canvas { z-index: 1; } /* sits above the fallback once it starts drawing */

.assembly-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11, 31, 46, 0.8) 0%,
    rgba(11, 31, 46, 0.15) 28%,
    rgba(11, 31, 46, 0.1) 60%,
    rgba(11, 31, 46, 0.85) 100%
  );
}

.assembly-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 20px; color: #fff; text-align: center;
}
.assembly-header { max-width: 680px; margin: 0 auto; }
.assembly-heading { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 0 0 10px; }
.assembly-lead { color: var(--brand-ice); margin: 0; font-size: 1.02rem; }

.assembly-captions {
  position: relative; height: 3.4em;
  width: min(560px, 90vw); margin: 0 auto;
}
.assembly-caption {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 0.3s ease;
  font-size: 1.1rem; font-weight: 600;
}
.assembly-caption.active { opacity: 1; }

@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav { gap: 12px; }
  .main-nav a:not(.nav-phone) { display: none; }
  .btn-ghost { display: block; margin: 14px 0 0; }

  .assembly-scroll { height: 220vh; }
  .assembly-heading { font-size: 1.4rem; }
  .assembly-lead { font-size: 0.92rem; }
  .assembly-caption { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .assembly-scroll { height: auto; }
  .assembly-sticky { position: static; height: auto; }
  .assembly-canvas { display: none; }
  .assembly-fallback {
    position: static; z-index: auto; width: 100%; height: auto; aspect-ratio: 16 / 9;
  }
  .assembly-scrim { position: static; background: none; }
  .assembly-overlay {
    position: static; color: var(--ink); background: var(--paper-soft);
    padding: 48px 20px;
  }
  .assembly-heading, .assembly-lead { color: inherit; }
  .assembly-header { margin-bottom: 24px; }
  .assembly-captions {
    position: static; height: auto; display: flex; flex-direction: column;
    gap: 10px; width: 100%; max-width: 560px;
  }
  .assembly-caption { position: static; opacity: 1 !important; color: var(--ink-soft); }
}
