/* =========================================================
   Profezzo Brand Theme
   Overrides the Modernize default palette with brand colors.
   Palette:  cream #fafaf8  ·  dark teal #001f1f  ·  red #ce1016
   Loaded after styles.css so these declarations win.
   ========================================================= */

:root,
[data-color-theme=Blue_Theme]:root,
[data-bs-theme=light][data-color-theme=Blue_Theme]:root,
[data-bs-theme=dark][data-color-theme=Blue_Theme]:root {
  /* Primary = brand red */
  --bs-primary: #ce1016;
  --bs-primary-rgb: 206, 16, 22;
  --bs-light-primary: rgba(206, 16, 22, 0.1);
  --bs-primary-bg-subtle: rgba(206, 16, 22, 0.06);
  --bs-primary-border-subtle: rgba(206, 16, 22, 0.25);
  --bs-primary-text-emphasis: #001f1f;

  /* Secondary = dark teal */
  --bs-secondary: #001f1f;
  --bs-secondary-rgb: 0, 31, 31;
  --bs-light-secondary: rgba(0, 31, 31, 0.1);
  --bs-secondary-bg-subtle: rgba(0, 31, 31, 0.08);

  /* Kill the named blue + info blue (retheme to brand teal) */
  --bs-blue: #ce1016;
  --bs-info: #001f1f;
  --bs-info-rgb: 0, 31, 31;
  --bs-light-info: rgba(0, 31, 31, 0.1);
  --bs-info-bg-subtle: rgba(0, 31, 31, 0.08);
  --bs-info-border-subtle: rgba(0, 31, 31, 0.25);
  --bs-info-text-emphasis: #001f1f;

  /* Links */
  --bs-link-color: #ce1016;
  --bs-link-color-rgb: 206, 16, 22;
  --bs-link-hover-color: #a00d12;
  --bs-link-hover-color-rgb: 160, 13, 18;
}

/* Cream page background */
body {
  --bs-body-bg: #fafaf8;
  background-color: #fafaf8;
}

/* ---- Components that hard-code the old blue (#5d87ff) ---- */

/* Solid primary button — selector matches the Blue_Theme-scoped rule */
.btn-primary,
[data-color-theme=Blue_Theme]:root .btn-primary,
[data-bs-theme=light][data-color-theme=Blue_Theme]:root .btn-primary,
[data-bs-theme=dark][data-color-theme=Blue_Theme]:root .btn-primary {
  --bs-btn-bg: #ce1016;
  --bs-btn-border-color: #ce1016;
  --bs-btn-hover-bg: #a00d12;
  --bs-btn-hover-border-color: #a00d12;
  --bs-btn-active-bg: #a00d12;
  --bs-btn-active-border-color: #8f0c10;
  --bs-btn-disabled-bg: #ce1016;
  --bs-btn-disabled-border-color: #ce1016;
  --bs-btn-focus-shadow-rgb: 206, 16, 22;
}

/* Outline primary button */
.btn-outline-primary {
  --bs-btn-color: #ce1016;
  --bs-btn-border-color: #ce1016;
  --bs-btn-hover-bg: #ce1016;
  --bs-btn-hover-border-color: #ce1016;
  --bs-btn-active-bg: #ce1016;
  --bs-btn-active-border-color: #ce1016;
  --bs-btn-disabled-color: #ce1016;
  --bs-btn-disabled-border-color: #ce1016;
  --bs-btn-focus-shadow-rgb: 206, 16, 22;
}

/* Tabs, pills, pagination, progress, list-group active accents */
.nav-tabs {
  --bs-nav-tabs-link-active-bg: #ce1016;
  --bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) #ce1016;
}
.nav-pills {
  --bs-nav-pills-link-active-bg: #ce1016;
}
.pagination {
  --bs-pagination-active-bg: #ce1016;
  --bs-pagination-active-border-color: #ce1016;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(206, 16, 22, 0.25);
}
.progress,
.progress-stacked {
  --bs-progress-bar-bg: #ce1016;
}
.list-group {
  --bs-list-group-active-bg: #ce1016;
  --bs-list-group-active-border-color: #ce1016;
}

/* Form controls focus ring */
.form-check-input:checked {
  background-color: #ce1016;
  border-color: #ce1016;
}
.form-check-input:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(206, 16, 22, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(206, 16, 22, 0.2);
}

/* Ensure text stays legible on solid brand-red bands */
.bg-primary,
.text-bg-primary {
  color: #fff !important;
}

/* Headline accent helper used in hero */
.text-link-color {
  color: #001f1f !important;
}
