/* Kellick Solution
   Dark blue, light blue, white. Depth carries hierarchy: deep navy for
   structure, the lighter blue as the accent that marks the radiography
   division. The colour split is information, not decoration. */

:root {
  /* Dark blue, light blue, white. Depth of blue carries hierarchy;
     the lighter blue marks the radiography division throughout. */
  --k-ink:        #0A2140;
  --k-navy:       #0D2C54;
  --k-navy-deep:  #071B36;
  --k-blue:       #4A9BD1;
  --k-blue-light: #9CCBE8;
  --k-paper:      #F2F7FB;
  --k-line:       #D3E2EE;
  --k-slate:      #43597A;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--k-slate);
  --bs-body-bg: #ffffff;
  --bs-primary: var(--k-navy);
  --bs-link-color: var(--k-navy);
  --bs-link-hover-color: var(--k-blue);
  --bs-border-color: var(--k-line);
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--k-slate);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-title {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--k-ink);
  font-weight: 600;
  letter-spacing: -0.011em;
  line-height: 1.18;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); margin-bottom: .75rem; }
h3 { font-size: 1.22rem; }

p, li { max-width: 68ch; }

a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Brand bar & navigation */

.k-topbar {
  background: var(--k-navy-deep);
  color: #B9D6EC;
  font-size: .875rem;
}
.k-topbar a { color: #ffffff; text-decoration: none; }
.k-topbar a:hover { text-decoration: underline; }

.navbar { border-bottom: 1px solid var(--k-line); background: #fff; }
.navbar { padding-top: .7rem; padding-bottom: .7rem; }
.navbar-brand { padding: 0; margin-right: 2rem; }
.navbar-brand img { display: block; height: 44px; width: auto; }
@media (max-width: 575.98px) { .navbar-brand img { height: 36px; } }
.navbar .nav-link { color: var(--k-slate); font-size: .96rem; padding: .5rem .8rem; }
@media (min-width: 992px) {
  .navbar .nav-link { border-right: 1px solid var(--k-line); }
  .navbar .nav-item:last-child .nav-link { border-right: none; }
}
.navbar .nav-link:hover { color: var(--k-navy); }
.navbar .nav-link.active {
  color: var(--k-ink); font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--k-navy);
}
.navbar .btn-navy { background: var(--k-navy-deep) !important; border-color: var(--k-navy-deep) !important; color: #fff !important; }
.navbar .btn-navy:hover { background: var(--k-ink) !important; border-color: var(--k-ink) !important; color: #fff !important; }

/* Hero */

.k-hero {
  background: var(--k-navy);
  color: #DCEAF6;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.k-hero h1 { color: #fff; }
.k-hero .lead { color: #AECBE4; max-width: 54ch; }
.k-hero .k-emblem { opacity: .13; width: 100%; max-width: 300px; }
@media (max-width: 991.98px) { .k-hero .k-emblem { display: none; } }
.k-hero .k-roles {
  color: #86B4D6; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 1rem; margin-top: 1.75rem;
}

/* The quick request panel is the one bold element on the page. */
.k-quick {
  background: #fff; border-radius: 4px; padding: 1.6rem;
  box-shadow: 0 18px 40px rgba(7, 27, 54, .28);
}
.k-quick h2 { font-size: 1.15rem; margin-bottom: .25rem; }
.k-quick .form-label { font-size: .82rem; color: var(--k-slate); margin-bottom: .25rem; }

/* The kicker sits above the h1 on the home page only, because the document
   pairs a service line with the headline there. Not a decorative eyebrow. */
.k-kicker {
  color: #8FBFE2; font-size: 1rem; margin-bottom: .6rem;
  border-left: 3px solid var(--k-blue-light); padding-left: .75rem;
}

/* Sections */

.k-section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.k-section-alt { background: var(--k-paper); }

.k-lede { font-size: 1.15rem; color: var(--k-ink); max-width: 60ch; }

/* Panels carry a left rule in the colour of the division they belong to. */
.k-panel {
  background: #fff; border: 1px solid var(--k-line);
  border-left: 3px solid var(--k-navy);
  border-radius: 3px; padding: 1.4rem 1.5rem; height: 100%;
}
.k-panel h3 { margin-bottom: .5rem; }
.k-panel--accent { border-left-color: var(--k-blue); background: #FAFDFF; }
.k-panel--accent h3 { color: var(--k-blue); }

.k-list { list-style: none; padding-left: 0; margin: 0; }
.k-list li { padding: .3rem 0 .3rem 1.5rem; position: relative; border-bottom: 1px solid var(--k-line); }
.k-list li:last-child { border-bottom: 0; }
.k-list li::before {
  content: ""; position: absolute; left: 0; top: .95em;
  width: 8px; height: 1px; background: var(--k-blue-light);
}

.k-check { color: var(--k-navy); }
/* Lists that carry their own tick do not also need the dash marker. */
.k-list--check li { padding-left: 0; }
.k-list--check li::before { content: none; }

.k-quote {
  background: #fff; border: 1px solid var(--k-line); border-top: 3px solid var(--k-blue-light);
  border-radius: 1.25rem; padding: 1.4rem 1.5rem; height: 100%; margin: 0;
}
.k-quote p { font-size: 1.03rem; color: var(--k-ink); margin-bottom: .9rem; }
.k-quote p::before { content: "\201C"; }
.k-quote p::after  { content: "\201D"; }
.k-quote footer { font-size: .9rem; color: var(--k-slate); }

/* Buttons */

.btn { border-radius: 0.5rem; font-weight: 500; padding: .65rem 1.35rem; }
.btn-navy { background: var(--k-navy); color: #fff; border: 1px solid var(--k-navy); }
.btn-navy:hover { background: var(--k-navy-deep); border-color: var(--k-navy-deep); color: #fff; }
.btn-outline-light-navy { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-outline-light-navy:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-blue { background: var(--k-blue); color: var(--k-navy-deep); border: 1px solid var(--k-blue); }
/* On the navy hero, a navy button would vanish. Flip the primary CTA to the
   light blue with dark text, which also passes contrast comfortably. */
.k-hero .btn-navy { background: var(--k-blue); border-color: var(--k-blue); color: var(--k-navy-deep); }
.k-hero .btn-navy:hover { background: #6DB2DE; border-color: #6DB2DE; color: var(--k-navy-deep); }
.btn-blue:hover { filter: brightness(.92); color: #fff; }

/* Tables */

.table > :not(caption) > * > * { padding: .7rem .85rem; }
.table thead th {
  background: var(--k-paper); color: var(--k-ink); font-weight: 600;
  border-bottom: 2px solid var(--k-line);
}

/* Forms */

.form-control, .form-select {
  border-radius: 2px; border-color: #c6d8e8; padding: .6rem .75rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--k-navy); box-shadow: 0 0 0 3px rgba(13, 44, 84, .14);
}
.form-label { font-weight: 500; color: var(--k-ink); }
.k-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.k-footer { background: var(--k-navy-deep); color: #9DBBD6; padding: 3rem 0 1.75rem; }
.k-footer h2 { color: #fff; font-size: 1.2rem; }
.k-footer .k-footer-logo { height: 52px; width: auto; display: block; margin-bottom: 1rem; }
.k-footer h3 { color: #fff; font-size: .95rem; font-family: var(--bs-body-font-family);
  font-weight: 600; margin-bottom: .6rem; }
.k-footer a { color: #BFD8EC; text-decoration: none; }
.k-footer a:hover { color: #fff; text-decoration: underline; }
.k-footer .k-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem;
  padding-top: 1.25rem; font-size: .85rem; }

/* Accessibility */

a:focus-visible, button:focus-visible, .form-control:focus-visible,
.form-select:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--k-blue); outline-offset: 2px;
}
.k-skip {
  position: absolute; left: -9999px; background: #fff; color: var(--k-ink);
  padding: .75rem 1rem; z-index: 1080;
}
.k-skip:focus { left: 1rem; top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Mobile */

@media (max-width: 991.98px) {
  /* Topbar: stack on small screens */
  .k-topbar .container { flex-direction: column; gap: .25rem !important; text-align: center; }

  /* Navbar: full-width CTA button when menu is open */
  .navbar .btn-navy { display: block; width: 100%; text-align: center; margin-top: .5rem; }

  /* Nav links get more tap area, no dividers */
  .navbar .nav-link { padding: .65rem 1rem; border-bottom: 1px solid var(--k-line); }
  .navbar .nav-item:last-child .nav-link { border-bottom: none; }

  /* Quick panel: tighter padding */
  .k-quick { padding: 1.1rem; }

  /* Footer: tighter padding */
  .k-footer { padding: 2rem 0 1.25rem; }
  .k-footer .k-legal { flex-direction: column; gap: .5rem; }
}

/* Hero image */
.k-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Staff image cards */
.k-staff-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  border-radius: 1.25rem 1.25rem 0 0;
}

@media (max-width: 575.98px) {
  /* Full-width paragraph/list text on tiny screens */
  p, li { max-width: 100%; }

  /* Quote cards: tighter padding */
  .k-quote { padding: 1rem 1.1rem; }

  /* Panels: tighter padding */
  .k-panel { padding: 1rem 1.1rem; }

  /* Buttons: full width in hero */
  .k-hero .btn { display: block; width: 100%; text-align: center; }
  .k-hero .btn + .btn { margin-top: .5rem; }

  /* Footer logo: slightly smaller */
  .k-footer .k-footer-logo { height: 40px; }

  /* Tables: smaller cell padding */
  .table > :not(caption) > * > * { padding: .5rem .6rem; }
}
