/*--------------------------------------------------------------
# bootstrap-lite.css — the Bootstrap 4.5 pieces this site actually uses
# Pair with bootstrap-grid.min.css (grid + display/flex/spacing utils).
# Replaces the full bootstrap.min.css (~160KB) on every page.
# Loaded BEFORE css/style.css so brand overrides in style.css win.
--------------------------------------------------------------*/

/* --- Minimal reboot (form-element normalisation only; * reset lives in style.css) --- */
button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}
button:not(:disabled), [type="button"]:not(:disabled),
[type="submit"]:not(:disabled), [role="button"] {
  cursor: pointer;
}
img { vertical-align: middle; border-style: none; }
[hidden] { display: none !important; }
strong, b { font-weight: 700; }

/* --- Layout helpers not in bootstrap-grid --- */
.fixed-top {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1030;
}
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.max-w-600 { max-width: 600px !important; }
.max-w-700 { max-width: 700px !important; }
.max-w-800 { max-width: 800px !important; }

/* --- Text utilities --- */
.text-center { text-align: center !important; }
.text-left  { text-align: left !important; }
.text-right, .text-end { text-align: right !important; }
.float-end { float: right !important; }
.text-white { color: #ffffff !important; }
.text-dark  { color: var(--color-dark) !important; }
.text-muted { color: var(--color-muted) !important; }
.text-secondary { color: #64748b !important; }
.text-decoration-none { text-decoration: none !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-extrabold { font-weight: 800 !important; }
.small { font-size: 80%; font-weight: 400; }
.lead { font-size: 1.2rem; font-weight: 400; line-height: 1.7; }
.display-4 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
.h1 { font-size: 2.25rem; }
.h2 { font-size: 1.9rem; }
.h3 { font-size: 1.6rem; }
.h4 { font-size: 1.4rem; }
.h5 { font-size: 1.18rem; }
.h6 { font-size: 1rem; }

/* --- Lists --- */
.list-unstyled { padding-left: 0; list-style: none; }

/* --- Backgrounds / borders / elevation --- */
.bg-white { background-color: #ffffff !important; }
.border { border: 1px solid var(--color-border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--color-border) !important; }
.rounded { border-radius: 10px !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-lg { border-radius: 14px !important; }
.shadow-sm { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important; }
.shadow-lg { box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15) !important; }
.img-fluid { max-width: 100%; height: auto; }

/* --- Column-order helper (paired swap on the homepage) --- */
@media (min-width: 992px) {
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
}

/* --- Buttons (brand buttons are in style.css; these back the utility variants) --- */
.btn {
  display: inline-block;
  font-weight: 400;
  color: var(--color-dark);
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; border-radius: 6px; }
.btn-light { color: var(--color-dark); background-color: #eef2f7; border-color: #eef2f7; }
.btn-light:hover { background-color: #e2e8f0; border-color: #e2e8f0; }
.btn-outline-secondary { color: var(--color-ink-2); border-color: var(--color-border-strong); }
.btn-outline-secondary:hover { color: var(--color-primary); border-color: var(--color-primary); background-color: var(--color-primary-tint); }
.btn-primary { color: #fff; background-color: var(--color-primary); border-color: var(--color-primary); }

/* --- Badges (brand colours overridden in style.css) --- */
.badge {
  display: inline-block;
  padding: 0.28em 0.55em;
  font-size: 74%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 6px;
}
.badge-dark { color: #fff; background-color: #1e293b; }

/* --- Alerts (radius / brand tints refined in style.css) --- */
.alert {
  position: relative;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

/* --- Forms (focus ring + radius refined in style.css) --- */
.form-group { margin-bottom: 1rem; }
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -6px;
  margin-left: -6px;
}
.form-row > .col,
.form-row > [class*="col-"] {
  padding-right: 6px;
  padding-left: 6px;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.form-control { height: auto; min-height: 96px; }
.form-control-file { display: block; width: 100%; font-size: 0.9rem; }
.form-text { display: block; margin-top: 0.3rem; }

/* --- Close button (modal) --- */
.close {
  float: right;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  opacity: 0.8;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.close:hover { opacity: 1; }

/* --- Modal (careers job-application dialog; driven by bootstrap.bundle.js there) --- */
.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  top: 0; left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}
.modal.fade .modal-dialog { transition: transform 0.3s ease-out; transform: translate(0, -40px); }
.modal.show .modal-dialog { transform: none; }
.fade { transition: opacity 0.15s linear; }
.fade:not(.show) { opacity: 0; }
.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 16px;
  outline: 0;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.modal-title { margin-bottom: 0; line-height: 1.4; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1.25rem; }
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #0b1220;
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 0.55; }
@media (min-width: 576px) {
  .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
  .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
  .modal-lg { max-width: 760px; }
}
