:root {
  --brand: #0a3b94;
  --azure: #2f6fe0;
  --canvas: #faf8f5;
  --surface: #ffffff;
  --ink: #1a2233;
  --muted: #5a677d;
  --line: #e7e2d8;
  --hero-navy: #060c20;
  --radius: 14px;
  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 48px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--azure); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 104px); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
h2.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.section-kicker {
  display: inline-block; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; color: var(--brand);
  background: #eaf0fb; padding: 6px 12px; border-radius: 20px; margin-bottom: 16px;
}
.lead { color: var(--muted); font-size: clamp(15px, 2vw, 17px); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 12px 22px;
  border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(10,59,148,.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10,59,148,.3); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,245,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--brand); }
.nav .nav-cta { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 4px;
    background: var(--surface); padding: 16px var(--pad) 24px; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-140%); transition: transform .25s ease; align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; font-size: 17px; }
  .nav .nav-cta { justify-content: center; margin-top: 8px; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--hero-navy); min-height: min(76vh, 600px); display: flex; align-items: center; }
.hero-poster, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero video { opacity: 0; transition: opacity .6s ease; }
.hero video.ready { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,12,32,.80) 0%, rgba(6,12,32,.52) 32%, rgba(6,12,32,.10) 66%, rgba(6,12,32,.02) 100%),
    linear-gradient(0deg, rgba(6,12,32,.42) 0%, rgba(6,12,32,0) 45%);
}
.hero-content { position: relative; z-index: 2; padding-block: 40px; width: 100%; }
.hero-kicker {
  display: inline-block; font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 700; color: #bcd2ff; background: rgba(61,126,255,.18);
  border: 1px solid rgba(120,160,255,.3); padding: 6px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero-title { font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; color: #fff; max-width: 40ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-br { display: inline; }
@media (max-width: 820px) { .hero-br { display: none; } }
.hero-title .accent { color: #8fb2ff; }
.hero-sub { color: rgba(233,240,252,.9); font-size: clamp(15px, 2vw, 18px); max-width: 52ch; margin: 16px 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Services ---- */
.cards-grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,40,80,.08); border-color: #d6dced; }
.svc-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 22px; color: var(--brand); background: #eef3fc; border-radius: 12px; margin-bottom: 14px; }
.svc-card h4 { font-size: 17px; margin-bottom: 6px; line-height: 1.25; letter-spacing: -.01em; }
.svc-card p { font-size: 14px; color: var(--muted); }
.svc-group { margin-top: 40px; }
.svc-group .cards-grid { margin-top: 0; }
.svc-group-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  color: var(--muted); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* ---- Partners ---- */
.partners { background: var(--surface); border-block: 1px solid var(--line); }
/* Vendor ticker: one continuous line, seamless loop.
   Each logo carries its own right margin (no flex gap) so the two sets are
   exactly equal width and translateX(-50%) lands on a perfect seam. */
.ticker { position: relative; overflow: hidden; margin: 34px 0 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-set img {
  height: 40px; width: auto; margin-right: 66px; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s;
}
.ticker-set img:hover { filter: none; opacity: 1; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 560px) { .ticker-set img { height: 32px; margin-right: 44px; } }
/* Accreditations keep full colour: certification marks must stay accurate */
.accred-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 18px; }
/* Grid (not flex) so the mixed portrait/landscape badge shapes sit on an even rhythm */
/* Fixed 6 columns so all badges stay on one line (auto-fit dropped to 5 and
   orphaned the last badge at common desktop widths). */
.accred-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 22px; align-items: center; justify-items: center; margin-bottom: 48px;
}
.accred-row img { max-height: 124px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) {
  .accred-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .accred-row img { max-height: 110px; }
}
@media (max-width: 560px) {
  .accred-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .accred-row img { max-height: 96px; }
}
.trust-row { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.trust-row li { border-left: 3px solid var(--azure); padding-left: 14px; }
.trust-row strong { display: block; font-size: 24px; font-weight: 800; color: var(--brand); }
.trust-row span { font-size: 13px; color: var(--muted); }

/* ---- Why us ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px; margin-top: 38px; }
.why-item { border-top: 3px solid var(--azure); padding-top: 18px; }
.why-num { display: block; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--azure); margin-bottom: 10px; }
.why-item h3 { font-size: 19px; margin-bottom: 8px; }
.why-item p { font-size: 15px; color: var(--muted); }

/* ---- Standards (second dark band, echoes the hero) ---- */
.standards { background: var(--hero-navy); color: #dbe4f2; }
.standards-kicker { background: rgba(61,126,255,.16); color: #9dbcff; border: 1px solid rgba(120,160,255,.28); }
.standards-title { color: #fff; max-width: 20ch; }
.standards-lead { color: #a9b8d2; font-size: clamp(15px, 2vw, 17px); max-width: 68ch; margin-top: 18px; }
.standards-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.standards-pills li {
  font-size: 13px; font-weight: 600; color: #cfdcf2;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05);
  padding: 9px 16px; border-radius: 22px;
}

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.about-body p { margin-bottom: 16px; font-size: clamp(15px, 2vw, 17px); color: var(--ink); }
.about-body p:last-child { color: var(--muted); }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---- Contact ---- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 36px; }
.contact-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.contact-block p { margin-bottom: 8px; font-size: 15px; }
/* :not(.btn) so this never overrides button text colour (it outranks .btn-primary) */
.contact-block a[href^="tel"]:not(.btn), .contact-block a[href^="mailto"]:not(.btn) { color: var(--ink); font-weight: 600; }
.contact-block a:not(.btn):hover { color: var(--brand); }
.contact-block .btn-primary { color: #fff; }
.contact-block .hours { font-size: 13px; color: var(--muted); line-height: 1.9; }

/* ---- Map ---- */
.map-wrap {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); line-height: 0;
  box-shadow: 0 10px 30px rgba(20,40,80,.07);
}
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; filter: saturate(.9); }
.map-link { margin-top: 12px; font-size: 14px; }
@media (max-width: 560px) { .map-wrap iframe { height: 300px; } }

/* ---- Footer ---- */
.site-footer { background: var(--hero-navy); color: #c7d2e6; padding-block: 44px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; }
/* Logo sits on a white plate: the mark is a dark-outlined blue oval with dark
   lettering, so it disappears on navy, and whitening it flattens the text away. */
.footer-brand img { background: #fff; padding: 9px 14px; border-radius: 10px; height: 52px; width: auto; }
.footer-tag { font-size: 14px; margin-top: 12px; color: #9fb0cc; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-meta a { color: #c7d2e6; font-weight: 600; }
.footer-nav a:hover, .footer-meta a:hover { color: #fff; }
.footer-meta p { margin-bottom: 8px; font-size: 14px; }
.footer-copy { color: #8397b5; }
/* Inline CC0 brand glyphs (no attribution requirement), monochrome on the dark footer */
.footer-social { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.footer-social a { display: inline-flex; color: #c7d2e6; transition: color .2s, transform .2s; }
.footer-social a:hover { color: #fff; transform: translateY(-2px); }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---- Motion ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero video { display: none; }
  /* Ticker stops moving and becomes a normal scrollable row */
  .ticker-track { animation: none !important; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-set { flex-wrap: wrap; gap: 24px 0; }
}
.btn-hero-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.16); }
