* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #4a4a4a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { min-height: 100vh; display: flex; flex-direction: column; }

.nav { display: flex; align-items: center; justify-content: space-between;
       padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid #ececec; }
.nav .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav .brand img { height: 48px; width: auto; display: block; }
/* Wordmark: same font treatment as "Select a service" on the landing page, so logo + name read as one mark */
.nav .brand .wordmark { font: 500 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
                        letter-spacing: .14em; text-transform: uppercase; color: #6e6e6e; white-space: nowrap; }
@media (max-width: 520px) {
  .nav .brand { gap: 10px; }
  .nav .brand img { height: 38px; }
  .nav { padding-left: 12px; padding-right: 12px; }
  .nav .brand .wordmark { font-size: 10px; letter-spacing: .1em; }
  .nav ul { gap: 2px; }
  .nav a.link { padding: 8px 9px; font-size: 13px; letter-spacing: .03em; }
}
.nav ul { display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); list-style: none; margin: 0; padding: 0; }
.nav a.link { color: #6e6e6e; text-decoration: none; font-weight: 500; font-size: 15px;
              letter-spacing: .06em; white-space: nowrap; padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a.link:hover, .nav a.link:focus-visible { background: #f3f3f3; color: #333; outline: none; }
.nav a.contact { background: var(--accent); color: #333; border-radius: 12px; padding: 10px 18px;
                 box-shadow: 0 4px 12px rgba(0,0,0,.10);
                 box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
                 transition: box-shadow .2s, transform .2s, filter .2s; }
.nav a.contact:hover, .nav a.contact:focus-visible { background: var(--accent); filter: brightness(.97); color: #111;
                 box-shadow: 0 6px 16px rgba(0,0,0,.12);
                 box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 38%, transparent); transform: translateY(-1px); }

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px 90px; text-align: center; }
h1 { margin: 0; font-size: clamp(34px, 7vw, 64px); font-weight: 600; letter-spacing: -.01em; color: #5a5a5a; }
h1::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 3px;
            background: var(--accent); margin: 22px auto 0; }

@media (max-width: 380px) {
  .nav { padding-left: 10px; padding-right: 10px; }
  .nav .brand { gap: 8px; }
  .nav .brand img { height: 32px; }
  .nav .brand .wordmark { font-size: 9px; letter-spacing: .08em; }
  .nav a.link { padding: 7px 8px; font-size: 12px; }
}

/* Footer */
.footer { border-top: 1px solid #ececec; padding: 40px clamp(16px, 4vw, 40px) 76px; color: #6e6e6e;
          font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; text-align: left; }
.footer-grid > div:last-child { text-align: right; }
.footer h2 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #9a9a9a; }
.footer p { margin: 0 0 4px; font-size: 15px; line-height: 1.5; }
.footer a { color: #6e6e6e; text-decoration: none; border-bottom: 1px solid #d5d5d5; transition: color .2s, border-color .2s; }
.footer a:hover, .footer a:focus-visible { color: #333; border-color: var(--accent); outline: none; }
.to-top { position: fixed; right: 18px; bottom: 14px; z-index: 100; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0;
          border: 3.5px solid #2C6AAD; border-radius: 50%; background: transparent; color: #2C6AAD; cursor: pointer;
          transition: box-shadow .25s, transform .25s; -webkit-tap-highlight-color: transparent; }
.to-top svg { width: 24px; height: 24px; display: block; stroke-width: 3.6; }
.to-top:hover, .to-top:focus-visible { box-shadow: 0 6px 14px rgba(24,60,100,.35); transform: translateY(-2px); outline: none; }
.to-top:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(24,60,100,.3); }
@media (max-width: 520px) { .footer-grid { gap: 14px; } .footer p { font-size: 14px; } }

/* Header logo: the other services light up in their colour and link to their page */
.nav .brand { display: flex; align-items: center; gap: 14px; }
.nav .brandlink { text-decoration: none; display: flex; align-items: center; }
.navlogo { position: relative; display: block; flex: none; height: 48px; aspect-ratio: 952 / 955; }
.nav .brand .navlogo img { display: block; height: 100%; width: 100%; }
.navlogo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nl-ring { fill: transparent; stroke: var(--c); stroke-width: 70; stroke-linejoin: round; stroke-opacity: 0; pointer-events: all; cursor: pointer; transition: stroke-opacity .15s ease; }
.nl-hit { outline: none; -webkit-tap-highlight-color: transparent; }
.nl-hit:hover .nl-ring, .nl-hit:focus-visible .nl-ring { stroke-opacity: 1; }
@media (max-width: 520px) { .navlogo { height: 38px; } }
@media (max-width: 380px) { .navlogo { height: 32px; } }

.nav.no-line { border-bottom: 0; }
