/* ==========================================================================
   Bootstrap 5 overrides — loaded AFTER bootstrap.css
   1. Custom container max-widths for the 1440px design
   2. Neutralise Bootstrap Reboot interference with the project's design system
   DO NOT modify bootstrap.css — all overrides belong here.
   ========================================================================== */

/* --- Neutralise Bootstrap CSS custom properties that conflict ------------- */
:root {
  --bs-body-font-family: var(--font-family-base);
  --bs-body-font-size: var(--fs-body);
  --bs-body-color: var(--color-body);
  --bs-body-bg: var(--color-white);
  --bs-link-color: inherit;
  --bs-link-hover-color: inherit;
}

/* --- Restore project's heading sizes (Bootstrap Reboot overrides these) --- */
h1 { font-size: var(--fs-hero); line-height: var(--lh-hero); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h2); }

/* --- Neutralise Bootstrap button styles (project uses custom .btn) -------- */
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: none;
}

/* --- Remove Bootstrap's default link color injection ---------------------- */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: inherit;
  text-decoration: none;
}

/* --- Remove Bootstrap form control focus box-shadow ----------------------- */
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  box-shadow: none;
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* --- Ensure Bootstrap img display doesn't break our reset ----------------- */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

@media (min-width: 1464px) {
  .containerz {
    max-width: 1440px;
  }
}
