/* HM Service — main stylesheet
   Mobile-first. One neutral palette + the logo's blue as the single accent. */

:root {
  /* REPLACEABLE IMAGES
     No CSS background photos are used: every image is an <img> tag pointing
     at assets/ (see assets/manifest.json). Add url() properties here if a
     background photo is ever introduced. */
  /* END REPLACEABLE IMAGES */

  /* Colour */
  --ink: #0e1a2b;
  --ink-2: #3b4759;
  --ink-3: #5d6878;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --line: #e2e0d9;
  --line-strong: #cfccc2;
  --brand: #1650c8;
  --brand-dark: #0f3c99;
  --brand-soft: #e9effb;
  --steel: #8c96a6;
  --focus: #f0a500;

  /* Type */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 3.9rem);

  /* Space & shape */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --wrap: 72rem;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 8px 24px rgba(14, 26, 43, .08);
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--focus); }
ul { padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-3); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Eyebrow: short blue rule + small caps label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font: 700 .8rem/1.2 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-3); }

/* ---------- Buttons (one vocabulary site-wide) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .8rem 1.35rem;
  font: 700 1rem/1.2 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(22, 80, 200, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-soft); color: var(--ink); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { color: #fff; border-color: #fff; }
.btn--lg { min-height: 3.4rem; padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: 100px; height: auto; }
.header-call {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.header-call svg { width: 1.15rem; height: 1.15rem; color: var(--brand); }
.header-call:hover { color: var(--brand); }
.header-call .num { display: none; }
.header-call .lbl { font-size: .95rem; }
.header-cta { display: none; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Without JS the menu is always visible (wraps below the logo). */
.site-nav { width: 100%; order: 5; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a {
  display: block; padding: .45rem 0;
  color: var(--ink-2); text-decoration: none; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* With JS on small screens: collapsible panel */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav.is-open ul { flex-direction: column; gap: 0; padding: .25rem 0 1rem; border-top: 1px solid var(--line); }
.js .site-nav.is-open a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.js .site-nav.is-open a[aria-current="page"] { color: var(--brand); }

@media (min-width: 40rem) {
  .header-call .num { display: inline; }
  .header-call .lbl { display: none; }
}

@media (min-width: 62rem) {
  .brand img { width: 116px; }
  .header-inner { flex-wrap: nowrap; gap: 2rem; }
  .site-nav, .js .site-nav { display: block; width: auto; order: 1; }
  .header-call { order: 2; }
  .header-cta { order: 3; }
  .site-nav ul { padding: 0; gap: 1.75rem; }
  .site-nav a { padding: .3rem 0; }
  .js .nav-toggle { display: none; }
  .header-cta { display: inline-flex; min-height: 2.75rem; padding: .6rem 1.15rem; font-size: .95rem; }
  .brand { margin-right: 0; }
  .site-nav { margin-right: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  background:
    linear-gradient(to right, rgba(22, 80, 200, .05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(22, 80, 200, .05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 13em; margin-bottom: .45em; }
.hero .lede { margin-bottom: 1.75rem; }
.hero-points {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  font-weight: 600; color: var(--ink); font-size: .98rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points svg { width: 1.15rem; height: 1.15rem; color: var(--brand); flex: none; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(14, 26, 43, .35);
}
.hero-media::before {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; z-index: -1;
  border: 2px solid var(--brand); border-radius: var(--radius-lg); opacity: .25;
}
.hero-media figcaption {
  margin-top: .85rem; font-size: .88rem; color: var(--ink-3);
}

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(to right, rgba(22, 80, 200, .05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(22, 80, 200, .05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); max-width: 16em; }
.page-hero .lede { margin-bottom: 1.5rem; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  counter-reset: svc;
}
.service-card {
  counter-increment: svc;
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card::before {
  content: counter(svc, decimal-leading-zero);
  display: block; margin-bottom: 1.1rem;
  font: 700 .82rem/1 var(--font-body); letter-spacing: .08em; color: var(--brand);
  padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card h3 { margin-bottom: .45rem; }
.service-card p { margin: 0; color: var(--ink-3); font-size: .98rem; }
.services-foot {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.services-foot p { margin: 0; color: var(--ink-3); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Values / reasons ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: .9fr 1.1fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reasons li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1rem;
  padding: 1.35rem 0; border-top: 1px solid var(--line);
}
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons .ico {
  grid-row: span 2;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
}
.reasons .ico svg { width: 1.2rem; height: 1.2rem; }
.reasons strong { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
.reasons span { color: var(--ink-3); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .gallery-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.gallery-item { margin: 0; }
.gallery-item img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: #e9e7e1;
}
.gallery-item figcaption { margin-top: .75rem; font-size: .95rem; color: var(--ink-3); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: #c9d2e0;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 4rem);
  display: grid; gap: 1.5rem; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -8rem; top: -8rem; width: 24rem; height: 24rem;
  border-radius: 50%; border: 36px solid rgba(22, 80, 200, .35);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; max-width: 34em; }
.cta-band .eyebrow { color: #8fb0ff; }
@media (min-width: 56rem) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---------- Service detail (services page) ---------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.svc-nav a {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.svc-nav a:hover { border-color: var(--brand); color: var(--brand); }

.svc-list { display: grid; gap: 0; }
.svc {
  display: grid; gap: .75rem 3rem;
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.svc:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 56rem) { .svc { grid-template-columns: 1fr 1.2fr; } }
.svc h2 { font-size: var(--step-2); margin-bottom: .35em; }
.svc .for { color: var(--ink-3); margin: 0; }
.svc .ticks { margin: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .95rem; height: .55rem;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg) translate(1px, -2px);
}
.ticks--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

.feature {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
@media (min-width: 56rem) { .feature { grid-template-columns: 1fr 1fr; } }
.feature img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.chips li {
  padding: .35rem .8rem; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-dark); font-weight: 600; font-size: .9rem;
}

/* ---------- About ---------- */
.about-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.about-card h2 { font-size: var(--step-2); }
.logo-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; place-items: center; padding: 2.5rem;
}
.logo-panel img { width: min(100%, 360px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.contact-list li {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-list .ico {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
}
.contact-list .ico svg { width: 1.2rem; height: 1.2rem; }
.contact-list small { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.contact-list a, .contact-list .val { font-weight: 700; color: var(--ink); font-size: 1.1rem; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--brand); }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.form-card h2 { font-size: var(--step-2); margin-bottom: .3em; }
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field label .req { color: var(--brand); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: #fcfcfa; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22, 80, 200, .15); background: #fff; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: .25rem 0 1.25rem; min-height: 65px; }
.form-note { font-size: .88rem; color: var(--ink-3); margin: 1rem 0 0; }
.form-status { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: #e8f6ee; color: #125c34; border: 1px solid #b7e2c8; }
.form-status.is-error { background: #fdeeee; color: #8a1c1c; border: 1px solid #f2c4c4; }
.form-status.is-pending { background: var(--brand-soft); color: var(--brand-dark); }
.form-card button[disabled] { opacity: .65; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab5c6; padding-top: clamp(3rem, 7vw, 4.5rem); font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #8fb0ff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 150px; background: #fff; border-radius: var(--radius); padding: .6rem .9rem; margin-bottom: 1rem; }
.footer-brand p { max-width: 26em; }
.footer-title { font: 700 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-list .big { font-size: 1.15rem; font-weight: 700; }
.fine {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.25rem 1.5rem;
  font-size: .85rem; color: #8894a6;
  display: grid; gap: .35rem;
}
.fine p { margin: 0; }
.fine a { color: #aab5c6; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); }
.fine a:hover { color: #fff; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(14, 26, 43, .08);
}
.action-bar .btn { min-height: 2.9rem; padding: .6rem .8rem; font-size: .95rem; }
body { padding-bottom: 4.5rem; }
@media (min-width: 62rem) { .action-bar { display: none; } body { padding-bottom: 0; } }

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