/* =====================================================
   STERLING Separation Ltd — UK Site Custom Styles
   Bootstrap 5 override layer
   ===================================================== */

:root {
  --sterling-navy:        #173554;   /* primary dark navy — deepened to anchor RAL 5012 palette */
  --sterling-blue:        #3977bc;   /* RAL 5012 Light Blue — primary brand blue */
  --sterling-orange:      #1abde0;   /* cyan-blue accent — harmonises with RAL 5012 */
  --sterling-orange-lt:   #5bd8f0;   /* lighter cyan-blue for hover/glow */
  --sterling-pale:        #e8f3fa;   /* very pale blue for section bgs */
  --sterling-mid:         #4d9fd0;   /* lighter hover/CTA blue derived from RAL 5012 */
  --sterling-text:        #1a2e42;   /* dark text */
}

/* ---- Utility colour classes ---- */
.bg-sterling-navy  { background-color: var(--sterling-navy) !important; }
.bg-sterling-blue  { background-color: var(--sterling-blue) !important; }
.bg-sterling-pale  { background-color: var(--sterling-pale) !important; }
.text-sterling-navy   { color: var(--sterling-navy) !important; }
.text-sterling-accent { color: var(--sterling-orange) !important; }
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.text-white-50 { color: rgba(255,255,255,.5) !important; }

/* ---- Navbar ---- */
.navbar { box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  letter-spacing: .02em;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: color .2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: var(--sterling-orange); }

.dropdown-menu-sterling {
  background-color: var(--sterling-navy);
  border: 1px solid rgba(26,189,224,.25);
  border-top: 2px solid var(--sterling-orange);
  border-radius: 0 0 .5rem .5rem;
}
.dropdown-menu-sterling .dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}
.dropdown-menu-sterling .dropdown-item:hover {
  background-color: rgba(26,189,224,.15);
  color: #fff;
}
.dropdown-menu-sterling .dropdown-divider { border-color: rgba(255,255,255,.15); }

/* ---- Hero / Carousel ---- */
.carousel-sterling { height: 560px; }
.carousel-sterling .carousel-inner { height: 100%; }
.carousel-sterling .carousel-item {
  height: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sterling-blue) 0%, #235f99 100%);
}
.carousel-sterling .carousel-indicators [data-bs-target] { background-color: var(--sterling-orange); }
.carousel-sterling .carousel-control-prev-icon,
.carousel-sterling .carousel-control-next-icon { filter: none; }

/* ---- Parallax hero sections ---- */
.parallax-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
.parallax-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,53,84,.92) 0%, rgba(13,34,54,.85) 100%);
  z-index: 0;
}
.parallax-hero > * { position: relative; z-index: 1; }
/* Disable parallax on touch devices for performance */
@media (hover: none) {
  .parallax-hero { background-attachment: scroll; }
}

/* ---- Page hero (non-carousel) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--sterling-navy) 0%, var(--sterling-blue) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { font-size: 2.6rem; font-weight: 700; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb-item a { color: var(--sterling-orange); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---- Announcement banner ---- */
.announcement-bar {
  background: var(--sterling-navy);
  color: #fff;
  padding: .55rem 0;
  font-size: .875rem;
  font-weight: 600;
}
.announcement-bar a { color: #fff; text-decoration: underline; }

/* ---- Feature icon strip ---- */
.feature-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sterling-blue), var(--sterling-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  flex-shrink: 0;
}
.feature-card { border: none; border-radius: .75rem; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(23,53,84,.15); }

/* ---- Product cards ---- */
.product-card {
  border: none;
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(23,53,84,.18); }
.product-card .card-img-top {
  height: 200px;
  object-fit: contain;
  background: var(--sterling-pale);
  padding: 1rem;
}
.product-card .card-footer { background: transparent; border-top: 1px solid rgba(0,0,0,.06); }

/* ---- Section headings ---- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--sterling-orange);
}
.section-title { font-weight: 700; color: var(--sterling-text); }
.section-divider {
  width: 3.5rem; height: 3px;
  background: linear-gradient(90deg, var(--sterling-blue), var(--sterling-orange));
  border: none; border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ---- Stat counters / impact boxes ---- */
.stat-box {
  background: var(--sterling-pale);
  border-left: 4px solid var(--sterling-blue);
  border-radius: .5rem;
  padding: 1.5rem;
}
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--sterling-blue); line-height: 1; }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--sterling-blue) 0%, var(--sterling-navy) 100%);
}

/* ---- Buttons ---- */
.btn-sterling-primary {
  background-color: var(--sterling-blue);
  border-color: var(--sterling-blue);
  color: #fff;
}
.btn-sterling-primary:hover {
  background-color: var(--sterling-mid);
  border-color: var(--sterling-mid);
  color: #fff;
}
.btn-sterling-orange {
  background-color: var(--sterling-orange);
  border-color: var(--sterling-orange);
  color: var(--sterling-navy);
}
.btn-sterling-orange:hover {
  background-color: var(--sterling-orange-lt);
  border-color: var(--sterling-orange-lt);
  color: var(--sterling-navy);
}
.btn-sterling-outline {
  border: 2px solid var(--sterling-orange);
  color: var(--sterling-orange);
  background: transparent;
}
.btn-sterling-outline:hover {
  background: var(--sterling-orange);
  color: var(--sterling-navy);
}

/* ---- Key term highlights ---- */
.kw { color: var(--sterling-orange); font-weight: 600; }

/* ---- Draft placeholders — values awaiting confirmation.
        Deliberately loud (amber) so they can't slip through to
        publication. Remove the class (or the whole span) once the
        final figure is inserted. ---- */
.kb-placeholder {
  background: #fff3cd;
  color: #8a5a00;
  font-weight: 600;
  padding: 0 .3rem;
  border-radius: .25rem;
  border-bottom: 2px dashed #d39e00;
}

/* ---- Custom bullet list ---- */
.bullet-list { list-style: none; padding-left: 0; }
.bullet-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .75rem;
}
.bullet-list li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%233977bc'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  margin-top: .15rem;
  flex-shrink: 0;
}

/* ---- Team cards ---- */
.team-card img { border: 4px solid var(--sterling-pale); }
.team-card .team-role {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sterling-orange);
  font-weight: 700;
}

/* ---- Accordion (downloads) ---- */
.accordion-button:not(.collapsed) {
  background-color: var(--sterling-pale);
  color: var(--sterling-navy);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .15rem rgba(26,189,224,.2); }
.accordion-button::after { filter: none; }

/* ---- Download list items ---- */
.download-item {
  border-left: 3px solid var(--sterling-orange);
  padding: .5rem 1rem;
  margin-bottom: .5rem;
  background: #fff;
  border-radius: 0 .375rem .375rem 0;
  display: flex; align-items: center; gap: .75rem;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.download-item:hover { background: var(--sterling-pale); color: inherit; }
.download-item .bi { color: var(--sterling-blue); font-size: 1.2rem; flex-shrink: 0; }

/* ---- Warning / regulatory boxes ---- */
.reg-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
}
.reg-danger {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
}
.reg-info {
  background: var(--sterling-pale);
  border-left: 4px solid var(--sterling-blue);
  border-radius: .5rem;
  padding: 1rem 1.25rem;
}

/* ---- Footer links ---- */
.footer-link:hover { color: var(--sterling-orange) !important; }
.text-sterling-accent { color: var(--sterling-orange) !important; }

/* ---- Parallax divider strip ---- */
.parallax-strip {
  min-height: 220px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.parallax-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23,53,84,.80);
}
.parallax-strip > .container { position: relative; z-index: 1; }
@media (hover: none) {
  .parallax-strip { background-attachment: scroll; }
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767.98px) {
  .page-hero h1 { font-size: 1.9rem; }
  .carousel-sterling { height: auto; min-height: 400px; }
  .carousel-sterling .carousel-inner { height: auto; }
  .carousel-sterling .carousel-item { height: auto; min-height: 400px; overflow: hidden; }
}
