/* Self-hosted Space Mono (latin, OFL) — avoids two render-blocking Google Fonts round-trips */
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-mono-700.woff2) format('woff2'); }

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  --hd-bg:   #e8e8e8;
  --hd-text: #0d0d1a;
  --hd-blue: #2222ee;
  --hd-mono: 'Space Mono', monospace;
}

/* ── Reset / base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--hd-mono) !important;
  background-color: var(--hd-bg) !important;
  color: var(--hd-text) !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }
body { line-height: 1.6; }

/* ── Nav ────────────────────────────────────────────────────────── */
#hd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--hd-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
#hd-nav .hd-logo img {
  height: 40px;
  width: auto;
  display: block;
}
#hd-nav .hd-nav-cta {
  font-family: var(--hd-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hd-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#hd-nav .hd-nav-cta:hover { color: var(--hd-blue); }

/* ── Shared bordered box ────────────────────────────────────────── */
.hd-box {
  border: 2px solid var(--hd-blue);
  margin: 0 16px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
#hd-hero { padding: 12px 0 0; }

.hd-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 48px 48px 48px 48px;
  min-height: 300px;
}

.hd-location {
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--hd-text);
  margin: 0 0 28px;
}

.hd-company-name {
  font-family: var(--hd-mono);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--hd-text);
  margin: 0 0 36px;
  line-height: 1.1;
}

.hd-hero-tagline {
  font-family: var(--hd-mono);
  font-size: 0.75rem;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--hd-text);
  margin: 0;
}
.hd-hero-tagline strong {
  color: var(--hd-blue);
  font-weight: 700;
}

.hd-hero-image {
  width: clamp(140px, 18vw, 260px);
  height: auto;
  display: block;
}

/* ── Description ────────────────────────────────────────────────── */
#hd-description { padding: 12px 0 0; }

.hd-desc-inner {
  padding: 48px;
}

.hd-desc-heading {
  font-family: var(--hd-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--hd-text);
  margin: 0 0 32px;
}

.hd-desc-body {
  font-family: var(--hd-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  max-width: 820px;
  color: var(--hd-text);
}
.hd-desc-body p { margin: 0 0 1.2em; }
.hd-desc-body p:last-child { margin-bottom: 0; }

/* ── Ticker ─────────────────────────────────────────────────────── */
.hd-ticker-wrap {
  background: var(--hd-blue);
  overflow: hidden;
  padding: 11px 0;
  margin: 0 16px;
  margin-top: -2px; /* sit flush against the box border */
}

@keyframes hd-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hd-ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: hd-scroll 26s linear infinite;
}
.hd-ticker-track span {
  font-family: var(--hd-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  padding-right: 16px;
}

/* ── Services + Form ────────────────────────────────────────────── */
#hd-services-form { padding: 12px 0 16px; }

.hd-sf-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px;
}

.hd-section-heading {
  font-family: var(--hd-mono);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--hd-text);
  margin: 0 0 28px;
}

/* Capabilities box */
.hd-capabilities-box {
  border: 1px solid var(--hd-text);
  padding: 24px 28px;
}
.hd-cap-label {
  font-family: var(--hd-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  color: var(--hd-text);
}
.hd-capabilities-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hd-capabilities-box ul li {
  font-family: var(--hd-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--hd-text);
  padding: 8px 0;
  border-bottom: 1px solid rgba(13, 13, 26, 0.15);
}
.hd-capabilities-box ul li:last-child { border-bottom: none; }

/* ── Form column ────────────────────────────────────────────────── */
.hd-form-col form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hd-form-col .hd-field-label {
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--hd-text);
  margin-bottom: 4px;
  display: block;
}

.hd-form-col input[type="text"],
.hd-form-col input[type="email"],
.hd-form-col input[type="tel"],
.hd-form-col textarea {
  font-family: var(--hd-mono) !important;
  font-size: 0.82rem;
  background: #ffffff;
  border: 1px solid var(--hd-text);
  border-radius: 0;
  padding: 10px 12px;
  color: var(--hd-text);
  width: 100%;
  box-sizing: border-box;
  display: block;
}
.hd-form-col input::placeholder,
.hd-form-col textarea::placeholder {
  color: #888;
  font-family: var(--hd-mono);
  font-size: 0.78rem;
}
.hd-form-col textarea { resize: vertical; }

.hd-form-col [data-quote-submit] {
  font-family: var(--hd-mono) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0;
  padding: 14px 24px;
  width: 100%;
  cursor: pointer;
  display: block;
  margin-top: 4px;
  transition: background 0.15s;
}
.hd-form-col [data-quote-submit]:hover { background: var(--hd-blue) !important; }
.hd-form-col [data-quote-submit]:disabled { opacity: 0.55; cursor: not-allowed; }

/* Drop zone — override old colours */
.hd-drop-zone {
  border: 2px dashed var(--hd-text) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.hd-drop-zone:hover,
.hd-drop-zone.hd-drop-active {
  background: #f0f0f0 !important;
  border-color: var(--hd-blue) !important;
}
.hd-drop-hint {
  font-family: var(--hd-mono);
  font-size: 0.78rem;
  color: var(--hd-text);
  margin: 4px 0;
}
.hd-drop-hint-small {
  font-family: var(--hd-mono);
  font-size: 0.7rem;
  color: #666;
}

/* File items */
.hd-file-list { margin-top: 6px; }
.hd-file-item {
  font-family: var(--hd-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  margin: 3px 0;
  background: #e4e4e4;
  color: var(--hd-text);
  word-break: break-all;
}
.hd-file-size { color: #555; }

/* Upload progress */
.hd-upload-progress {
  font-family: var(--hd-mono);
  font-size: 0.78rem;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff9e6;
  border: 1px solid #f0c040;
  color: #7a5c00;
}

/* Form success / error messages */
.u-form-send-success,
.u-form-send-error {
  font-family: var(--hd-mono) !important;
  font-size: 0.8rem !important;
  border-radius: 0 !important;
  position: static !important;
  margin-top: 8px;
  padding: 12px 16px !important;
  text-align: left !important;
}

/* ── Footer ─────────────────────────────────────────────────────── */
#hd-footer {
  background: #0d0d1a;
  color: #888888;
  text-align: center;
  padding: 24px 20px;
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-top: 0;
}
#hd-footer p { margin: 0; }

/* ── Responsive ─────────────────────────────────────────────────── */
/* ── Nav links ──────────────────────────────────────────────────── */
#hd-nav .hd-nav-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: flex-end; }
#hd-nav .hd-nav-links a {
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--hd-text);
  text-decoration: none;
}
#hd-nav .hd-nav-links a:hover, #hd-nav .hd-nav-links a[aria-current] { color: var(--hd-blue); }
#hd-nav .hd-nav-links a.hd-nav-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.hd-h1-sub {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--hd-blue);
  font-weight: 700;
}

/* ── Generic content section ────────────────────────────────────── */
.hd-section { padding: 12px 0 0; }
.hd-section:last-of-type { padding-bottom: 16px; }
.hd-section .hd-desc-body { max-width: 900px; }
.hd-section .hd-desc-body h3 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 2em 0 0.6em;
}
.hd-desc-body a, .hd-capabilities-box a { color: var(--hd-blue); }
.hd-desc-body ul, .hd-desc-body ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.hd-table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.hd-table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.hd-table-wrap th, .hd-table-wrap td { border: 1px solid rgba(13, 13, 26, 0.3); padding: 8px 10px; text-align: left; vertical-align: top; }
.hd-table-wrap th { font-weight: 700; }
.hd-desc-body li { margin: 0 0 0.4em; font-size: 1.125rem; line-height: 1.6; }
@media (max-width: 767px) { .hd-desc-body li { font-size: 1rem; } }

.hd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0 !important;
  margin: 0;
  counter-reset: step;
}
.hd-steps li {
  border: 1px solid var(--hd-text);
  padding: 18px;
  font-size: 0.8rem;
  line-height: 1.7;
  counter-increment: step;
}
.hd-steps li::before {
  content: "0" counter(step);
  display: block;
  color: var(--hd-blue);
  font-weight: 700;
  margin-bottom: 8px;
}
.hd-steps strong { display: block; margin-bottom: 4px; }

/* FAQ */
.hd-faq details { border-bottom: 1px solid rgba(13, 13, 26, 0.2); padding: 14px 0; }
.hd-faq summary { cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.hd-faq details p { margin: 10px 0 0; }

.hd-more-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hd-blue);
}
/* Quote CTAs render as a button matching the form's submit button. */
.hd-desc-body .hd-more-link[href="/#quote-form"] {
  font-size: 1rem;
  padding: 16px 32px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}
.hd-desc-body .hd-more-link[href="/#quote-form"]:hover,
.hd-desc-body .hd-more-link[href="/#quote-form"]:focus-visible { background: var(--hd-blue); }

/* Form messages (formerly styled by Nicepage CSS) */
.u-form-send-success { background: #62c584; color: #fff; }
.u-form-send-error { background: #f95d51; color: #fff; }

/* Footer links */
#hd-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 12px; }
#hd-footer a { color: #cccccc; text-decoration: none; }
#hd-footer a:hover { color: #ffffff; }

@media (max-width: 768px) {
  .hd-box { margin: 0 8px; }

  .hd-hero-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .hd-hero-image { display: none; }

  .hd-desc-inner { padding: 32px 24px; }
  #hd-nav { flex-direction: column; gap: 10px; }
  #hd-nav .hd-nav-links { justify-content: center; }

  .hd-ticker-wrap { margin: 0 8px; }

  .hd-sf-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 40px;
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .hd-company-name { font-size: 1.6rem; }
  .hd-desc-heading { font-size: 1rem; }
}

/* H2 sizing carried over from the old Nicepage theme CSS (h2:not(.u-subtitle) used to override these) */
h2.hd-desc-heading, h2.hd-section-heading { font-weight: 400; font-size: 3rem; line-height: 1.1; margin-top: 20px; margin-bottom: 20px; }
@media (max-width: 767px) { h2.hd-desc-heading, h2.hd-section-heading { font-size: 2.25rem; } }
@media (max-width: 575px) { h2.hd-desc-heading, h2.hd-section-heading { font-size: 1.875rem; } }
p:not(.u-text-variant) { font-size: 1.125rem; margin-top: 20px; margin-bottom: 20px; line-height: 1.6; }
@media (max-width: 767px) { p:not(.u-text-variant) { font-size: 1rem; } }
#hd-footer p { font-size: 0.8rem; margin: 4px 0; }

/* ── Service-area map ───────────────────────────────────────────── */
.hd-desc-body.hd-wide { max-width: none; }
.hd-area-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hd-area-grid h3:first-child { margin-top: 0; }
.hd-map { margin: 0; border: 1px solid var(--hd-text); padding: 16px; background: var(--hd-bg); max-width: 480px; justify-self: end; width: 100%; }
.hd-map figcaption { font-size: 0.68rem; letter-spacing: 0.1em; margin-top: 12px; border-top: 1px solid rgba(13, 13, 26, 0.15); padding-top: 10px; }
@media (max-width: 900px) { .hd-area-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hd-map { justify-self: stretch; max-width: none; } }
@media (max-width: 480px) { .hd-map { padding: 8px; } }
